/* =====================================================================
   components.css —— 新外壳组件
   仅使用 .pb- / .dash- / .feat- / .pw- / .net- 前缀，避免与旧样式冲突。
   ===================================================================== */

/* ================= 底部导航：中间玻璃球 ================= */
.tabbar {
  overflow: visible;
}

.tab.tab-plus {
  flex: 0 0 62px;
  position: relative;
  padding: 0;
}

.tab.tab-plus .pb {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: -20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-grad);
  border: 1px solid rgba(255, 255, 255, .40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), 0 8px 22px rgba(47, 107, 255, .42);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.tab.tab-plus .pb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), transparent 56%);
  pointer-events: none;
}

.tab.tab-plus svg {
  width: 26px;
  height: 26px;
  color: #fff;
  position: relative;
  z-index: 1;
  stroke-width: 2.2;
}

.tab.tab-plus:active .pb {
  transform: scale(.93);
}

/* 滑动高亮胶囊（替代变色，iOS 观感） */
.tabbar .tab-ind {
  position: absolute;
  top: 6px;
  height: 42px;
  width: 54px;
  border-radius: 14px;
  background: rgba(47, 107, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.tabbar .tab {
  position: relative;
  z-index: 1;
}

/* ================= 通用页头（大标题 + 帽檐） ================= */
.hd2 {
  padding: calc(10px + var(--sat)) 18px 8px;
  position: relative;
  z-index: 20;
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

.hd2.stuck {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: var(--blur-float);
  backdrop-filter: var(--blur-float);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 10px 26px rgba(18, 24, 48, .07);
}

.hd2 .k {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.hd2 h1 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -.034em;
  margin: 2px 0 0;
  font-weight: 700;
  transition: font-size var(--t-mid) var(--ease);
}

.hd2.stuck h1 {
  font-size: 21px;
}

.hd2 .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* ================= 首页看板 ================= */
.dash {
  padding: 4px 16px 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.kpi2 {
  border-radius: var(--r-md);
  padding: 11px 12px 10px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: var(--blur-surface);
  backdrop-filter: var(--blur-surface);
  border: 1px solid var(--glass-line);
  box-shadow: var(--rim), var(--sh-1);
  position: relative;
  overflow: hidden;
  min-height: 76px;
}

.kpi2 .kl {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.kpi2 .kv {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.042em;
  line-height: 1.16;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.kpi2 .kv small {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-left: 3px;
}

.kpi2 .kv em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--mint);
  margin-left: 4px;
  letter-spacing: 0;
}

.kpi2 .kd {
  font-size: 9.5px;
  color: var(--ink-4);
  margin-top: 1px;
}

.kpi2 .spark {
  position: absolute;
  right: 9px;
  bottom: 8px;
  opacity: .8;
  pointer-events: none;
}

.dash-panel {
  margin-top: 9px;
  border-radius: var(--r-md);
  padding: 12px 13px 10px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: var(--blur-surface);
  backdrop-filter: var(--blur-surface);
  border: 1px solid var(--glass-line);
  box-shadow: var(--rim), var(--sh-1);
}

.dash-panel .ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dash-panel .ph b {
  font-size: 12.5px;
  letter-spacing: -.01em;
}

.dash-panel .ph span {
  font-size: 10px;
  color: var(--ink-3);
}

.dash-panel canvas {
  display: block;
  width: 100%;
}

.dash-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 2px 8px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

.dash-sec button {
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}

.dash-recent .frow {
  margin-bottom: 7px;
}

.dash-split {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-legend {
  flex: 1;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 2;
}

.dash-legend .li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
}

.dash-legend b {
  font-variant-numeric: tabular-nums;
}

/* ================= 功能页 ================= */
.feat {
  padding: 2px 16px 0;
}

.feat-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(122, 99, 255, .16), rgba(47, 107, 255, .10) 60%, rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--rim), var(--sh-1);
}

.feat-hero .fi {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #8E7BFF, #5B45D6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px rgba(91, 69, 214, .3);
  flex: none;
}

.feat-hero .fi svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.feat-hero .t {
  flex: 1;
  min-width: 0;
}

.feat-hero .t b {
  display: block;
  font-size: 14px;
  letter-spacing: -.01em;
}

.feat-hero .t i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
}

.feat-hero .go {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-2);
  box-shadow: var(--rim);
}

.feat-sec {
  margin: 18px 2px 9px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .06em;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
}

.feat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.feat-tile .ti {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), 0 6px 16px rgba(18, 24, 48, .13);
  transition: transform var(--t-fast) var(--ease);
}

.feat-tile .ti::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 54%);
  pointer-events: none;
}

.feat-tile .ti svg {
  width: 22px;
  height: 22px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.feat-tile:active .ti {
  transform: scale(.93);
}

.feat-tile span {
  font-size: 10.5px;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.3;
  max-width: 72px;
}

/* ================= 网络状态条 ================= */
.netbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 300;
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #fff;
  background: #6B7385;
  transition: height var(--t-mid) var(--ease);
  padding-top: var(--sat);
  box-sizing: content-box;
}

.netbar.show {
  height: 22px;
}

.netbar.offline {
  background: linear-gradient(90deg, #B4562E, #C9743B);
}

.netbar.weak {
  background: linear-gradient(90deg, #B8730A, #C98A20);
}

.netbar.sync {
  background: var(--brand-grad-h);
}

.netbar .nb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: nb-pulse 1.1s infinite;
}

@keyframes nb-pulse {

  0%,
  100% {
    opacity: .35
  }

  50% {
    opacity: 1
  }
}

/* ================= 密码夹 ================= */
.pw {
  padding: 2px 16px 0;
}

.pw-gate {
  padding: 36px 12px 0;
  text-align: center;
}

.pw-gate .lockball {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: var(--brand-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 16px 36px rgba(47, 107, 255, .32);
}

.pw-gate .lockball svg {
  width: 34px;
  height: 34px;
  color: #fff;
}

.pw-gate h2 {
  font-size: 21px;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.pw-gate p {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0 auto 20px;
  max-width: 30ch;
  line-height: 1.7;
}

.pw-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--rim), var(--sh-1);
  margin: 0 auto 10px;
  max-width: 320px;
}

.pw-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  letter-spacing: .02em;
}

.pw-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 46px;
  margin: 10px auto 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(160deg, #5E8CFF, #2F5FE8 58%, #6E4FF0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px rgba(47, 107, 255, .3);
}

.pw-btn.ghost {
  background: rgba(255, 255, 255, .72);
  color: var(--ink-2);
  box-shadow: var(--rim), var(--sh-1);
}

.pw-btn[disabled] {
  opacity: .55;
}

.pw-err {
  font-size: 12px;
  color: var(--danger);
  margin: 6px auto 0;
  max-width: 320px;
  min-height: 18px;
}

.pw-hint {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 16px auto 0;
  max-width: 320px;
}

.pw-tools {
  display: flex;
  gap: 8px;
  padding: 2px 0 10px;
}

.pw-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border-radius: 12px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-line);
  box-shadow: var(--rim);
  font-size: 12px;
  color: var(--ink-3);
}

.pw-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: var(--ink);
}

.pw-search svg {
  width: 14px;
  height: 14px;
  opacity: .45;
}

.pw-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.pw-chips::-webkit-scrollbar {
  display: none;
}

.pw-chip {
  flex: none;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--glass-line);
  color: var(--ink-2);
}

.pw-chip.on {
  background: rgba(18, 22, 32, .86);
  color: #fff;
  border-color: transparent;
}

.pw-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--glass-surface);
  -webkit-backdrop-filter: var(--blur-surface);
  backdrop-filter: var(--blur-surface);
  border: 1px solid var(--glass-line);
  box-shadow: var(--rim), var(--sh-1);
  margin-bottom: 8px;
  transition: transform var(--t-fast) var(--ease);
}

.pw-item:active {
  transform: scale(.988);
}

.pw-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: rgba(18, 20, 26, .06);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.pw-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pw-ico .sk {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.pw-main {
  flex: 1;
  min-width: 0;
}

.pw-main b {
  display: block;
  font-size: 13px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-main .u {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-main .p {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .12em;
  font-family: ui-monospace, monospace;
}

.pw-acts {
  display: flex;
  gap: 2px;
  flex: none;
}

.pw-acts button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.pw-acts button:active {
  background: rgba(18, 20, 26, .06);
}

.pw-acts svg {
  width: 16px;
  height: 16px;
}

.pw-weak {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 159, 10, .10);
  border: 1px solid rgba(255, 159, 10, .24);
  font-size: 11.5px;
  color: #8A5A08;
  line-height: 1.65;
}

/* 编辑表单 */
.pwf {
  padding: 2px 0 4px;
}

.pwf-row {
  margin-bottom: 10px;
}

.pwf-row>label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 4px;
  letter-spacing: .02em;
}

.pwf-in {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(18, 20, 26, .07);
  box-shadow: inset 0 1px 0 #fff;
}

.pwf-in input,
.pwf-in select,
.pwf-in textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  resize: none;
}

.pwf-in textarea {
  padding: 10px 0;
  height: 68px;
}

.pwf-in .eye,
.pwf-in .mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  flex: none;
}

.pwf-in .mini-btn.txt {
  width: auto;
  padding: 0 8px;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}

.pwf-in svg {
  width: 15px;
  height: 15px;
}

.pw-strength {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.pw-strength .bars {
  display: flex;
  gap: 3px;
  flex: 1;
}

.pw-strength .bars i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(18, 20, 26, .09);
}

.pw-strength .bars i.on1 {
  background: #FF3B30;
}

.pw-strength .bars i.on2 {
  background: #FF9F0A;
}

.pw-strength .bars i.on3 {
  background: #34C759;
}

.pw-strength .bars i.on4 {
  background: #25B79B;
}

.pw-strength em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  min-width: 44px;
  text-align: right;
}

/* 批量粘贴 */
.bulk-tip {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 0 0 8px;
}

.bulk-area {
  width: 100%;
  min-height: 132px;
  padding: 11px;
  border-radius: 13px;
  border: 1px solid rgba(18, 20, 26, .08);
  background: rgba(255, 255, 255, .84);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  outline: none;
  resize: vertical;
  color: var(--ink);
}

.bulk-list {
  max-height: 42vh;
  overflow-y: auto;
  margin-top: 10px;
}

.bulk-row {
  border-radius: 13px;
  border: 1px solid rgba(18, 20, 26, .07);
  background: rgba(255, 255, 255, .7);
  padding: 9px 10px;
  margin-bottom: 8px;
}

.bulk-row .bh {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.bulk-row .bh .bx {
  margin-left: auto;
  color: var(--ink-4);
  width: 26px;
  height: 26px;
}

.bulk-row .bh .bx svg {
  width: 13px;
  height: 13px;
}

.bulk-row .bh .conf {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(37, 183, 155, .12);
  color: #14836F;
}

.bulk-row .bh .conf.low {
  background: rgba(255, 159, 10, .14);
  color: #A86A0A;
}

.bulk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.bulk-grid label {
  display: block;
  font-size: 9.5px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.bulk-grid input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(18, 20, 26, .07);
  background: #fff;
  font-size: 12px;
  outline: none;
  min-width: 0;
}

.bulk-grid input:focus {
  border-color: rgba(47, 107, 255, .4);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .1);
}

/* 空态 */
.pw-empty {
  text-align: center;
  padding: 42px 20px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.pw-empty .ball {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-1);
}

.pw-empty .ball svg {
  width: 24px;
  height: 24px;
  opacity: .5;
}

/* ================= 响应式 ================= */
@media (min-width: 700px) {
  .dash {
    max-width: 720px;
    margin: 0 auto;
  }

  .feat {
    max-width: 720px;
    margin: 0 auto;
  }

  .pw {
    max-width: 720px;
    margin: 0 auto;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .dash {
    max-width: 900px;
  }

  .feat {
    max-width: 900px;
  }

  .feat-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ================= 看板补充：最近文件行 / 刷新指示 ================= */
.drow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(255, 255, 255, .72);
  transition: transform var(--t-fast) var(--ease);
}

.drow:active {
  transform: scale(.988);
}

.drow .di {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* 有真图时：彩色图标块换成缩略图，外加一圈极细的白描边把图片托起来 */
.drow .di.art {
  background: rgba(120, 130, 160, .10);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.drow .di.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drow .di svg {
  width: 15px;
  height: 15px;
}

.drow .dm {
  flex: 1;
  min-width: 0;
}

.drow .dm b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drow .dm span {
  font-size: 10.5px;
  color: var(--ink-3);
}

.drow .dg {
  font-size: 10px;
  color: var(--ink-4);
  flex: none;
}

.dash-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 0;
  overflow: hidden;
  font-size: 11px;
  color: var(--ink-3);
  transition: height .22s var(--ease), opacity .22s var(--ease);
  opacity: 0;
}

.dash-refresh.on {
  height: 34px;
  opacity: 1;
}

.dash-refresh svg {
  width: 13px;
  height: 13px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.kpi2 .kv.counting {
  color: var(--ink);
}

/* 图标尺寸兜底：U.icon 输出的 svg 不带宽高，必须由容器约束 */
.pw-input-wrap svg {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: .45;
}

.pw-input-wrap svg:first-child {
  margin-right: 2px;
}

.pw-gate .pw-input-wrap input {
  font-size: 14px;
}

.pw-btn svg {
  width: 16px;
  height: 16px;
}

.pwf-in .pw-ico svg {
  width: 20px;
  height: 20px;
}

.pw-acts>svg {
  width: 16px;
  height: 16px;
  opacity: .45;
}

.bulk-row .bh .conf {
  white-space: nowrap;
}

/* 底部中间「＋」接管了添加入口，隐藏旧的悬浮球避免两个加号 */
.fab {
  display: none !important;
}

/* 文件页多选条与底部导航留出间距 */
#multiBar {
  bottom: calc(var(--tab-h) + var(--sab) + 14px);
}

/* 图标块内的字母 / 矢量图标 */
.pw-ico>span {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.pw-ico>svg {
  width: 19px;
  height: 19px;
  color: inherit;
}

.pw-ico>img {
  object-fit: cover;
}

.pwf-in .pw-ico>span {
  font-size: 17px;
}

/* 深色 logo 换白底，否则在品牌色底上看不清 */
.pw-ico.on-white {
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(18, 20, 26, .08), 0 1px 2px rgba(18, 24, 48, .06);
}

.pw-ico.on-white img {
  object-fit: contain;
  padding: 5px;
}

/* ================= 链接预览卡 ================= */
.lcard {
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--rim), var(--sh-1);
}

.lc-hero {
  position: relative;
  width: 100%;
  height: 172px;
  background: rgba(18, 20, 26, .04);
  overflow: hidden;
}

.lc-hero-fb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(150deg, hsl(var(--lc-h, 220) 62% 63%), hsl(calc(var(--lc-h, 220) + 36) 58% 48%));
  transition: opacity .3s var(--ease);
}

.lc-hero-fb.dim {
  opacity: .28;
}

.lc-hero-fb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(47, 107, 255, .22), rgba(122, 91, 255, .16));
}

.lc-hero-fb span {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.lc-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .32s var(--ease);
}

.lc-hero img.on {
  opacity: 1;
}

.lc-sk {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(2px);
}

.lc-sk[hidden] {
  display: none;
}

.lc-body {
  padding: 11px 12px 12px;
}

.lc-site {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--ink-3);
}

.lc-fav {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(18, 20, 26, .05);
  flex: none;
}

.lc-fav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lc-fav svg {
  width: 12px;
  height: 12px;
  opacity: .5;
}

.lc-host {
  font-weight: 600;
  color: var(--ink-2);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-badge {
  margin-left: auto;
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(47, 107, 255, .10);
  color: var(--brand);
  white-space: nowrap;
}

.lc-title {
  font-size: 14.5px;
  line-height: 1.42;
  letter-spacing: -.012em;
  margin: 7px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lc-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lc-url {
  font-size: 10.5px;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.lc-acts,
.fb-acts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.lc-acts .mini-btn,
.fb-acts .mini-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lc-acts .mini-btn svg,
.fb-acts .mini-btn svg {
  width: 13px;
  height: 13px;
}

/* ================= 降级卡 ================= */
.fb-card {
  text-align: center;
  padding: 22px 16px 18px;
}

.fb-ico {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px rgba(18, 24, 48, .18);
}

.fb-ico svg {
  width: 26px;
  height: 26px;
}

.fb-name {
  font-size: 15px;
  letter-spacing: -.015em;
  margin: 0 0 6px;
  word-break: break-all;
}

.fb-reason {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0 0 4px;
}

.fb-hint {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 auto 14px;
  max-width: 30ch;
}

.fb-meta {
  text-align: left;
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(18, 20, 26, .06);
  padding: 8px 11px;
  margin-bottom: 14px;
}

.fb-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

.fb-row b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-acts {
  justify-content: center;
}

/* =====================================================================
   运行模式（本机 / 云端）与登录弹层的补充件
   —— 统一用 tokens 变量，不硬编码颜色
   ===================================================================== */

/* —— 模式徽标 —— */
.mode-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .2px;
  color: var(--ink-2);
  background: rgba(138, 144, 158, .14);
  border: 1px solid rgba(138, 144, 158, .18);
  vertical-align: middle;
  white-space: nowrap;
}
.mode-badge > i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.mode-badge.cloud {
  color: #1a7d55;
  background: rgba(37, 183, 155, .12);
  border-color: rgba(37, 183, 155, .26);
}
.mode-badge.cloud > i {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(37, 183, 155, .16);
}

/* 看板页头里的模式胶囊：可点，进「模式说明」 */
.hd-mode {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 650;
  color: var(--ink-2);
  background: rgba(120, 130, 160, .10);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hd-mode.cloud { color: #1a7d55; background: rgba(37, 183, 155, .12); }
.hd-mode:active { background: rgba(120, 130, 160, .2); }

/* —— 登录弹层：关闭 / 暂不登录 / 模式说明 —— */
.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(120, 130, 160, .12);
  color: var(--ink-3);
  cursor: pointer; z-index: 2;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.auth-close svg { width: 15px; height: 15px; }
.auth-close:active { background: rgba(120, 130, 160, .24); color: var(--ink); }
.auth-card { position: relative; }

.auth-skip {
  display: block; width: 100%;
  margin: 12px 0 0; padding: 9px 0;
  border: 1px solid rgba(120, 130, 160, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .5);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.auth-skip:active { background: rgba(120, 130, 160, .14); transform: scale(.985); }

.auth-mode-link {
  display: block; width: 100%;
  margin: 8px 0 0; padding: 4px 0;
  border: 0; background: transparent;
  font-size: 11.5px; color: var(--brand);
  cursor: pointer;
  font-family: inherit;
}
.auth-mode-link:active { opacity: .6; }

/* —— 模式说明弹层 —— */
.mode-hero {
  padding: 14px 14px 12px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(120, 130, 160, .10), rgba(120, 130, 160, .04));
  border: 1px solid rgba(120, 130, 160, .16);
}
.mode-hero.cloud {
  background: linear-gradient(160deg, rgba(37, 183, 155, .14), rgba(47, 107, 255, .06));
  border-color: rgba(37, 183, 155, .22);
}
.mode-hero .mh-top { margin-bottom: 8px; }
.mode-hero p {
  margin: 0; font-size: 12.5px; line-height: 1.72; color: var(--ink-2);
}

.mode-compare {
  margin-top: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(120, 130, 160, .16);
  background: rgba(255, 255, 255, .6);
}
.mc-head, .mc-row {
  display: grid;
  grid-template-columns: 88px 1fr 1fr;
  gap: 8px;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.6;
}
.mc-head {
  background: rgba(120, 130, 160, .10);
  font-weight: 700; color: var(--ink-2);
  font-size: 11px;
}
.mc-row { border-top: 1px solid rgba(120, 130, 160, .10); color: var(--ink-3); }
.mc-row .k { color: var(--ink-2); font-weight: 600; }
.mc-row span.on { color: var(--ink); font-weight: 600; }
.mc-row.last { border-bottom: 0; }

.mode-note {
  margin: 12px 2px 0;
  font-size: 11px; line-height: 1.75; color: var(--ink-3);
}

/* —— 「我的」页：模式卡 —— */
.mode-card { padding: 14px 14px 12px; }
.mode-row {
  display: flex; align-items: flex-start; gap: 11px;
  -webkit-tap-highlight-color: transparent;
}
.mode-row-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #5e5ce6, #0a84ff);
  box-shadow: var(--brand-shadow);
}
.mode-row-ico svg { width: 19px; height: 19px; }
.mode-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mode-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-row-top em {
  font-style: normal; font-size: 11.5px; color: var(--ink-3);
}
.mode-row-sub { font-size: 11.5px; line-height: 1.62; color: var(--ink-3); }
.mode-acts { display: flex; gap: 8px; margin-top: 12px; }
.mode-act {
  flex: 1; height: 36px;
  border-radius: 11px;
  font-size: 13px; font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.mode-act:active { transform: scale(.975); }
.mode-act.ghost {
  border: 1px solid rgba(120, 130, 160, .22);
  background: rgba(255, 255, 255, .5);
  color: var(--ink-2);
}
.mode-act.main {
  border: 0; color: #fff;
  background: var(--brand-grad);
  box-shadow: var(--brand-shadow);
}

/* —— 「我的」页（已登录）：账号卡里的模式条 —— */
.acct-mode {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 2px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(37, 183, 155, .08);
  border: 1px solid rgba(37, 183, 155, .16);
  -webkit-tap-highlight-color: transparent;
}
.acct-mode em {
  flex: 1; min-width: 0;
  font-style: normal; font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-mode .chev { width: 14px; height: 14px; color: var(--ink-4); flex: none; }

/* =====================================================================
   密码夹门禁：多解锁方式切换 + 内联手势/数字面板
   ===================================================================== */

/* 解锁方式切换（只在设置了多种方式时出现） */
.pw-seg {
  display: flex; gap: 4px;
  padding: 4px;
  margin: 0 auto 16px;
  max-width: 320px;
  border-radius: 13px;
  background: rgba(120, 130, 160, .12);
}
.pw-seg button {
  flex: 1; height: 34px;
  border: 0; background: transparent;
  border-radius: 10px;
  font-size: 13px; font-weight: 650;
  font-family: inherit;
  color: var(--ink-3);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.pw-seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(40, 50, 100, .12);
}

/* 面板：宽度与输入框一致，三种方式共用同一块位置，切换不跳动 */
.pw-pane {
  max-width: 320px;
  margin: 0 auto;
  min-height: 120px;
}
.pw-pane .keypad { margin-top: 2px; }
.pw-pane .pin-display { padding: 6px 0 14px; }
.pw-pane .pattern-wrap { padding: 0 0 4px; }
.pw-pane .pin-tip { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 0 0 4px; }
.pw-pane .pin-tip.err { color: var(--danger); }
.pw-pane .pin-tip.ok { color: var(--success); }

.pw-links { margin: 12px auto 0; text-align: center; }
.pw-link {
  border: 0; background: transparent;
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--brand);
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--t-fast) var(--ease);
}
.pw-link:active { background: rgba(47, 107, 255, .08); }

.pw-err.ok { color: var(--success); }

.pw-ok {
  font-size: 11px; font-weight: 700;
  color: var(--success);
  white-space: nowrap;
}

/* 危险行（清空密码夹） */
.row-item.danger .t { color: var(--danger); }

/* 应用内浏览器：慢加载提示条（被 X-Frame-Options 拦掉的站点不会报错，只会一直转） */
.ib-slow {
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  max-width: 88%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 24, 48, .78);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
  animation: fade .24s var(--ease);
  pointer-events: none;
}

/* 给应用内浏览器的内容区建一个定位上下文：
   加载中 / 被拦截 / 慢加载提示都相对它定位，不再锚到整个运行器上 */
.ib-body { position: relative; flex: 1; min-height: 0; }

/* ==================== v1.0.2 补充 ==================== */

/* 密码夹「快捷解锁」提示卡：常驻在列表顶部，直到用户加了 PIN 或手势 */
.pw-tipcard {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px; padding: 12px 12px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .10), rgba(122, 92, 255, .10));
  border: 1px solid rgba(47, 107, 255, .18);
  animation: fade .24s var(--ease, ease);
}
.pw-tipcard > svg { width: 20px; height: 20px; flex: none; color: var(--brand, #2f6bff); }
.pw-tipcard .pt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pw-tipcard .pt-main b { font-size: 13px; font-weight: 650; color: var(--t1, #10131a); }
.pw-tipcard .pt-main span { font-size: 11.5px; line-height: 1.45; color: var(--t3, #8a90a0); }
.pw-tipcard .pt-btn {
  flex: none; border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 650; font-family: inherit;
  color: #fff; background: var(--brand-grad, linear-gradient(135deg, #2f6bff, #7a5cff));
  box-shadow: var(--brand-shadow, 0 6px 14px rgba(47, 107, 255, .28));
}
.pw-tipcard .pt-btn:active { transform: scale(.96); }

/* =====================================================================
   工具工作台（tools.js 重设计）
   只新增 tw-* 命名空间，不覆盖原有 .tr-* 行为，避免影响其它页面。
   ===================================================================== */
.tw .tool-runner-body { padding: 10px 14px 0; }
.tw-hero {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--r-md, 18px);
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 6px 20px rgba(18,24,48,.06), var(--rim, inset 0 1px 0 #fff);
  margin-bottom: 12px;
}
.tw-hero-ico {
  flex: none; width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
}
.tw-hero-ico svg { width: 24px; height: 24px; }
.tw-hero-txt { flex: 1; min-width: 0; }
.tw-hero-txt h2 {
  margin: 0 0 3px; font-size: 16px; font-weight: 750; color: var(--t1);
  letter-spacing: -.01em;
}
.tw-hero-txt p {
  margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--t3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tw-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tw-tag, .tw-tag-lv {
  font-size: 10px; padding: 2px 7px; border-radius: 7px;
  background: rgba(120,130,160,.12); color: var(--t2);
}
.tw-tag-lv { background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--tc); font-weight: 650; }

/* 步骤条 */
.tw-steps {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 4px 12px;
}
.tw-step { display: flex; align-items: center; gap: 5px; flex: none; opacity: .45; transition: opacity .2s; }
.tw-step i {
  width: 19px; height: 19px; border-radius: 50%; font-style: normal;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: rgba(120,130,160,.16); color: var(--t2);
  transition: background .2s, color .2s, transform .2s var(--spring);
}
.tw-step span { font-size: 11.5px; color: var(--t2); white-space: nowrap; }
.tw-step.on { opacity: 1; }
.tw-step.on i { background: var(--tc, var(--brand)); color: #fff; transform: scale(1.06); }
.tw-step.on span { color: var(--t1); font-weight: 650; }
.tw-step.done i { background: color-mix(in srgb, var(--tc) 20%, #fff); color: var(--tc); }
.tw-step-line {
  flex: 1; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(120,130,160,.22), rgba(120,130,160,.10));
}

/* 卡片 */
.tw-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-md, 18px);
  box-shadow: 0 4px 16px rgba(18,24,48,.05), var(--rim, inset 0 1px 0 #fff);
  padding: 13px 13px 12px;
  margin-bottom: 12px;
}
.tw-card-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.tw-card-h b { font-size: 13.5px; font-weight: 700; color: var(--t1); }
.tw-hint { font-size: 10.5px; color: var(--t3); text-align: right; line-height: 1.4; flex: 1; }

/* 上传区 */
.tw-drop {
  width: 100%; border: 0; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 20px 12px; border-radius: var(--r-sm, 14px);
  background:
    repeating-linear-gradient(135deg, rgba(120,130,160,.045) 0 9px, rgba(120,130,160,.02) 9px 18px),
    rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1.5px rgba(120,130,160,.22);
  transition: transform .18s var(--spring), box-shadow .2s, background .2s;
}
.tw-drop:active { transform: scale(.985); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 55%, #fff); }
.tw-drop-ico {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc) 12%, #fff); color: var(--tc);
}
.tw-drop-ico svg { width: 21px; height: 21px; }
.tw-drop-t { font-size: 13.5px; font-weight: 650; color: var(--t1); }
.tw-drop-s { font-size: 10.5px; color: var(--t3); text-align: center; line-height: 1.4; }
.tool-runner.dragging .tw-drop {
  box-shadow: inset 0 0 0 2px var(--tc), 0 0 0 4px color-mix(in srgb, var(--tc) 12%, transparent);
}

/* 快捷入口：拍照 / 相册 / 文件箱 */
.tw-quick { display: flex; gap: 8px; margin-top: 9px; }
.tw-qbtn {
  flex: 1; min-width: 0; border: 0; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 38px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--t2);
  background: rgba(120,130,160,.10);
  transition: transform .16s var(--spring), background .2s;
}
.tw-qbtn:active { transform: scale(.96); background: rgba(120,130,160,.18); }
.tw-qbtn svg { width: 15px; height: 15px; }

/* 已选文件 */
.tw-file-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 2px 6px;
}
.tw-file-head b { font-size: 11.5px; font-weight: 650; color: var(--t2); }
.tw-clear {
  border: 0; background: transparent; color: var(--brand); font-size: 11.5px;
  font-family: inherit; cursor: pointer; padding: 2px 4px;
}
.tw .tr-file {
  background: rgba(255,255,255,.86);
  box-shadow: 0 2px 8px rgba(18,24,48,.04);
  border: 1px solid rgba(255,255,255,.9);
}
.tw .tr-fthumb { width: 46px; height: 46px; border-radius: 11px; }

/* 输入洞察：尺寸 / 时长 / 波形 / 首帧 */
.tw-insight { margin-top: 10px; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tw-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--t2);
  background: rgba(120,130,160,.10); padding: 3px 8px; border-radius: 8px;
}
.tw-chip svg { width: 11px; height: 11px; opacity: .75; }
.tw-wave-wrap {
  position: relative; background: color-mix(in srgb, var(--tc) 6%, #fff);
  border-radius: 12px; padding: 6px 8px; margin-top: 8px;
}
.tw-wave { display: block; width: 100%; height: 54px; }
.tw-wave-t {
  position: absolute; right: 10px; bottom: 6px; font-size: 10px; color: var(--t3);
}
.tw-frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; margin-top: 8px; background: rgba(120,130,160,.08);
  max-height: 210px;
}
.tw-frame img { display: block; width: 100%; max-height: 210px; object-fit: contain; }
.tw-frame > span {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: #fff; background: rgba(0,0,0,.5);
  padding: 3px 8px; border-radius: 999px;
}
.tw-frame > span svg { width: 10px; height: 10px; }

/* 参数：分段 / 滑杆 */
.tr-opt { margin-bottom: 12px; }
.tr-opt:last-child { margin-bottom: 2px; }
.tr-opt label { font-size: 11.5px; color: var(--t2); margin-bottom: 6px; }
.tw-seg {
  display: flex; gap: 3px; padding: 3px; border-radius: 12px;
  background: rgba(120,130,160,.10);
}
.tw-seg-i {
  flex: 1; min-width: 0; border: 0; cursor: pointer; font-family: inherit;
  padding: 8px 4px; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: var(--t2);
  background: transparent; transition: background .2s, color .2s, transform .16s var(--spring);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tw-seg-i.on {
  background: #fff; color: var(--tc, var(--brand));
  box-shadow: 0 2px 8px rgba(18,24,48,.10);
}
.tw-seg-i:active { transform: scale(.97); }
.tw-num { display: flex; align-items: center; gap: 10px; }
.tw-range {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 3px;
  background: rgba(120,130,160,.20); outline: none;
}
.tw-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--tc, var(--brand));
  box-shadow: 0 2px 6px rgba(18,24,48,.18);
}
.tw-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2px solid var(--tc, var(--brand));
}
.tw-num-v {
  flex: none; min-width: 32px; text-align: right; font-size: 13px; font-weight: 700;
  color: var(--tc, var(--brand)); font-variant-numeric: tabular-nums;
}
.tw-sel { text-align: left; }

/* 进度：环形 + 阶段 */
.tw-prog-card { display: flex; align-items: center; gap: 12px; }
.tw-prog { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.tw-ring { position: relative; width: 66px; height: 66px; flex: none; }
.tw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tw-ring circle { fill: none; stroke-width: 6; }
.tw-ring circle.bg { stroke: rgba(120,130,160,.16); }
.tw-ring circle.fg {
  stroke: var(--tc, var(--brand)); stroke-linecap: round;
  stroke-dasharray: 188.5; stroke-dashoffset: 188.5;
  transition: stroke-dashoffset .3s ease;
}
.tw-ring b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 14px; font-weight: 750; color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.tw-prog-txt { min-width: 0; }
.tw-prog-txt b { display: block; font-size: 13px; color: var(--t1); margin-bottom: 2px; }
.tw-prog-txt p {
  margin: 0; font-size: 11px; color: var(--t3); line-height: 1.4;
  white-space: pre-wrap; word-break: break-all;
}
.tw .tr-cancel { flex: none; height: 34px; padding: 0 12px; font-size: 12px; }

/* 结果 */
.tw-result { padding-bottom: 13px; animation: fade .22s ease; }
.tw-done { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tw-done-ico {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--success, #25B79B) 16%, #fff);
  color: var(--success, #25B79B);
}
.tw-done-ico svg { width: 17px; height: 17px; }
.tw-done b { display: block; font-size: 13.5px; color: var(--t1); }
.tw-done p {
  margin: 1px 0 0; font-size: 10.5px; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}

/* 前后对比滑块 */
.tw-cmp {
  position: relative; width: 100%; height: 230px; border-radius: 14px; overflow: hidden;
  background: rgba(120,130,160,.08); margin-top: 2px;
}
.tw-cmp img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.tw-cmp img.af { clip-path: inset(0 0 0 var(--x, 50%)); }
.tw-cmp-r {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; margin: 0;
  height: 34px; opacity: .001; cursor: ew-resize;
}
.tw-cmp-lb {
  position: absolute; top: 8px; font-size: 10px; color: #fff;
  background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 999px; pointer-events: none;
}
.tw-cmp-lb.l { left: 8px; }
.tw-cmp-lb.r { right: 8px; }

/* 文本结果 */
.tw-sub-title { font-size: 11.5px; font-weight: 650; color: var(--t2); margin: 10px 2px 6px; }
.tw-text-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 10px 2px 6px;
}
.tw-text-head b { font-size: 11.5px; font-weight: 650; color: var(--t2); }
.tw-text-head span { font-size: 10.5px; color: var(--t3); }
.tw-text {
  margin: 0; max-height: 240px; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(120,130,160,.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.6; color: var(--t1);
  white-space: pre-wrap; word-break: break-word;
}

/* 结果元信息 */
.tw-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px;
}
.tw-mv {
  background: rgba(120,130,160,.07); border-radius: 10px; padding: 7px 9px;
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.tw-mv span { font-size: 10px; color: var(--t3); }
.tw-mv b {
  font-size: 11.5px; color: var(--t1); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 音频 / 视频结果 */
.tw-audio, .tw-video {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: 13px; background: rgba(255,255,255,.9);
  border: 1px solid rgba(120,130,160,.14); margin-top: 4px;
}
.tw-audio-ico {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--tc);
}
.tw-audio-ico svg { width: 17px; height: 17px; }
.tw-audio audio { flex: 1; min-width: 0; height: 34px; }
.tw-video { padding: 0; overflow: hidden; }
.tw-video video { width: 100%; max-height: 240px; display: block; background: #000; }

/* 对比滑块的中线：明确「左右各一半」的视觉锚点 */
.tw-cmp::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: var(--x, 50%);
  width: 2px; margin-left: -1px; background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(18,24,48,.18);
  pointer-events: none;
}
.tw-cmp::before {
  content: '⇄'; position: absolute; left: var(--x, 50%); top: 50%;
  transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; color: var(--t1);
  background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(18,24,48,.22);
  pointer-events: none;
}
.tw-frame { max-height: 180px; }
.tw-frame img { max-height: 180px; }

/* =====================================================================
   「我的」页重构（account.js）
   目标：一张身份卡 + 一排数字 + 四个磁贴 + 三组列表，层次清楚不堆卡片
   ===================================================================== */
.ac-hero {
  position: relative;
  padding: 16px 16px 0;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(122,99,255,.16), transparent 55%),
    radial-gradient(110% 80% at 100% 0%, rgba(47,107,255,.14), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(30,40,80,.10), inset 0 1px 0 #fff;
  overflow: hidden;
}
.ac-hero::after {
  content: ''; position: absolute; right: -40px; top: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,99,255,.18), transparent 70%);
  pointer-events: none;
}
.ac-hero.local { background:
    radial-gradient(120% 90% at 0% 0%, rgba(120,130,160,.12), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,255,255,.80)); }

.ac-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.ac-avatar {
  position: relative; width: 58px; height: 58px; flex: none;
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 18px;
}
.ac-avatar .account-avatar,
.ac-avatar .account-avatar-img {
  width: 58px; height: 58px; border-radius: 18px; font-size: 22px; font-weight: 700;
  object-fit: cover; display: grid; place-items: center;
}
.ac-avatar .account-avatar {
  background: linear-gradient(140deg, #7c5cff, #2f6bff); color: #fff;
}
.ac-avatar.guest {
  display: grid; place-items: center; cursor: default;
  background: rgba(120,130,160,.14); color: var(--t2);
}
.ac-avatar.guest svg { width: 24px; height: 24px; }
.ac-avatar-edit {
  position: absolute; right: -3px; bottom: -3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; color: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(18,24,48,.20);
}
.ac-avatar-edit svg { width: 11px; height: 11px; }

.ac-id { flex: 1; min-width: 0; }
.ac-name {
  font-size: 19px; font-weight: 780; color: var(--t1);
  letter-spacing: -.02em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-mail {
  font-size: 11.5px; color: var(--t3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-editbtn {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 650;
  color: var(--brand); background: rgba(47,107,255,.11);
  cursor: pointer; transition: transform .14s var(--spring);
}
.ac-editbtn:active { transform: scale(.95); }
.ac-editbtn svg { width: 13px; height: 13px; }
.ac-editbtn.solid {
  color: #fff; background: var(--brand-grad);
  box-shadow: 0 4px 12px rgba(47,107,255,.28);
}

.ac-modebar {
  display: flex; align-items: center; gap: 7px; width: 100%;
  margin-top: 12px; padding: 7px 9px; border: 0; border-radius: 11px;
  background: rgba(255,255,255,.72); cursor: pointer; font-family: inherit; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(120,130,160,.10);
  position: relative; z-index: 1;
}
.ac-modebar em {
  flex: 1; min-width: 0; font-style: normal; font-size: 10.5px; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-modebar > svg { width: 13px; height: 13px; color: var(--t3); flex: none; }

.ac-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 12px; padding: 6px 0 10px;
  border-top: 1px solid rgba(120,130,160,.12);
  position: relative; z-index: 1;
}
.ac-kpi {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  padding: 6px 2px; border-radius: 12px; transition: transform .16s var(--spring), background .2s;
}
.ac-kpi:active { transform: scale(.95); background: rgba(120,130,160,.08); }
.ac-kpi b {
  display: block; font-size: 19px; font-weight: 780; color: var(--t1);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.ac-kpi span { font-size: 10.5px; color: var(--t3); }
.ac-foot {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 8px 2px 12px; font-size: 10.5px; color: var(--t3);
  border-top: 1px solid rgba(120,130,160,.12);
  position: relative; z-index: 1;
}
.ac-foot b { color: var(--t1); font-weight: 700; }
.ac-foot i { font-style: normal; opacity: .5; margin: 0 2px; }
.ac-foot-btn {
  margin-left: auto; border: 0; background: rgba(47,107,255,.10);
  color: var(--brand); font-family: inherit; font-size: 10.5px; font-weight: 650;
  padding: 3px 9px; border-radius: 999px; cursor: pointer;
}
.ac-foot-btn:active { transform: scale(.95); }

/* 分区标题 */
.ac-sec {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 4px 8px; font-size: 12px; font-weight: 700; color: var(--t2);
  letter-spacing: .01em;
}
.ac-sec-more {
  display: inline-flex; align-items: center; gap: 2px;
  border: 0; background: transparent; color: var(--brand);
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px;
}
.ac-sec-more svg { width: 12px; height: 12px; }

/* 四个磁贴 */
.ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.ac-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 12px 11px; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 16px; text-align: left;
  background: rgba(255,255,255,.82);
  box-shadow: 0 3px 12px rgba(18,24,48,.05), inset 0 1px 0 #fff;
  transition: transform .16s var(--spring), box-shadow .2s;
}
.ac-tile:active { transform: scale(.97); box-shadow: 0 2px 6px rgba(18,24,48,.06); }
.ac-tile-ico {
  width: 32px; height: 32px; border-radius: 11px; color: #fff;
  display: grid; place-items: center; margin-bottom: 6px;
}
.ac-tile-ico svg { width: 16px; height: 16px; }
.ac-tile b { font-size: 13px; font-weight: 700; color: var(--t1); }
.ac-tile > span:last-child {
  font-size: 10.5px; color: var(--t3); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

/* 列表 */
.ac-list { padding: 2px 0; overflow: hidden; }
.ac-row {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 12px; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: background .18s;
  position: relative;
}
.ac-row + .ac-row::before {
  content: ''; position: absolute; left: 52px; right: 12px; top: 0; height: 1px;
  background: rgba(120,130,160,.12);
}
.ac-row:active { background: rgba(120,130,160,.09); }
.ac-row-ico {
  width: 29px; height: 29px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.ac-row-ico svg { width: 15px; height: 15px; }
.ac-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ac-row-main b {
  font-size: 13px; font-weight: 620; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-row-main span {
  font-size: 10.5px; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-row-right { flex: none; color: var(--t3); display: grid; place-items: center; }
.ac-row-right svg { width: 14px; height: 14px; }
.ac-danger .ac-row-main b { color: #e0342c; }
.ac-statcard { padding: 4px 6px 2px; }
.ac-ver {
  text-align: center; font-size: 10.5px; color: var(--t3);
  margin: 16px 0 4px; opacity: .8;
}

/* =====================================================================
   扫描文档（home.js）
   ===================================================================== */
.scan-lead {
  margin: 2px 2px 12px; font-size: 12px; line-height: 1.5; color: var(--t3);
}
.scan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 15px 13px 14px; border: 0; cursor: pointer; font-family: inherit; text-align: left;
  border-radius: 18px; background: rgba(255,255,255,.86);
  box-shadow: 0 4px 16px rgba(18,24,48,.07), inset 0 1px 0 #fff;
  transition: transform .16s var(--spring), box-shadow .2s;
}
.scan-card:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(18,24,48,.08); }
.sc-ico {
  width: 40px; height: 40px; border-radius: 13px; color: #fff;
  display: grid; place-items: center; margin-bottom: 8px;
}
.sc-ico svg { width: 20px; height: 20px; }
.sc-ico.cam { background: linear-gradient(140deg,#FF9F5A,#F0682B); box-shadow: 0 6px 14px rgba(240,104,43,.28); }
.sc-ico.alb { background: linear-gradient(140deg,#6FA0FF,#2F5FE8); box-shadow: 0 6px 14px rgba(47,95,232,.26); }
.scan-card b { font-size: 14px; font-weight: 700; color: var(--t1); }
.scan-card > span:last-child { font-size: 10.5px; color: var(--t3); line-height: 1.4; }
.scan-tips {
  margin-top: 14px; padding: 10px 12px; border-radius: 13px;
  background: rgba(120,130,160,.07);
}
.st-row {
  display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--t3);
  padding: 3px 0; line-height: 1.4;
}
.st-row svg { width: 12px; height: 12px; flex: none; opacity: .7; }

.scan-prev {
  border-radius: 16px; overflow: hidden; background: rgba(120,130,160,.08);
  max-height: 46vh; display: flex; align-items: center; justify-content: center;
}
.scan-prev img { display: block; width: 100%; max-height: 46vh; object-fit: contain; }
.scan-filemeta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 2px 2px;
}
.sfm-name {
  flex: 1; min-width: 0; font-size: 12px; color: var(--t1); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sfm-size { flex: none; font-size: 11px; color: var(--t3); }
.scan-hint { margin: 4px 2px 0; font-size: 10.5px; color: var(--t3); }

/* OCR 进度 */
.ocr-run { display: flex; gap: 13px; align-items: stretch; padding: 4px 0 6px; }
.ocr-thumb {
  flex: none; width: 92px; border-radius: 13px; overflow: hidden;
  background: rgba(120,130,160,.10); display: flex; align-items: center; justify-content: center;
}
.ocr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocr-side { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ocr-ring { position: relative; width: 62px; height: 62px; }
.ocr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ocr-ring circle { fill: none; stroke-width: 5.5; }
.ocr-ring circle.bg { stroke: rgba(120,130,160,.16); }
.ocr-ring circle.fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .3s ease; }
.ocr-ring b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; font-weight: 750; color: var(--t1); font-variant-numeric: tabular-nums;
}
.ocr-msg b { display: block; font-size: 12.5px; color: var(--t1); }
.ocr-msg p { margin: 2px 0 0; font-size: 10.5px; }

/* =====================================================================
   语音输入（home.js / 搜索框）
   ===================================================================== */
.search-box .s-mic {
  width: 28px; height: 28px; flex: none; border: 0; border-radius: 9px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--brand); background: rgba(47,107,255,.10);
  transition: transform .14s var(--spring), background .2s, color .2s;
}
.search-box .s-mic svg { width: 15px; height: 15px; }
.search-box .s-mic:active { transform: scale(.92); }
.search-box .s-mic.on {
  color: #fff; background: var(--brand-grad);
  box-shadow: 0 0 0 4px rgba(47,107,255,.14);
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47,107,255,.16); }
  50% { box-shadow: 0 0 0 8px rgba(47,107,255,.05); }
}

.vw-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 14px;
}
.vw-mic {
  position: relative; width: 74px; height: 74px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 10px 26px rgba(47,107,255,.32);
  transition: transform .18s var(--spring);
}
.vw-mic svg { width: 30px; height: 30px; }
.vw-mic:active { transform: scale(.94); }
.vw-mic .vw-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(47,107,255,.35); opacity: 0;
}
.vw-mic.rec .vw-pulse { animation: vwPulse 1.6s ease-out infinite; }
@keyframes vwPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.vw-wave {
  display: flex; align-items: center; gap: 4px; height: 26px; margin-top: 14px;
}
.vw-wave span {
  width: 4px; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #7AA0FF, #2F6BFF);
  opacity: .35; transition: opacity .2s;
}
.vw-wave.on span { animation: vwBar 1s ease-in-out infinite; opacity: .95; }
.vw-wave.on span:nth-child(1) { animation-delay: 0s; }
.vw-wave.on span:nth-child(2) { animation-delay: .12s; }
.vw-wave.on span:nth-child(3) { animation-delay: .24s; }
.vw-wave.on span:nth-child(4) { animation-delay: .06s; }
.vw-wave.on span:nth-child(5) { animation-delay: .3s; }
.vw-wave.on span:nth-child(6) { animation-delay: .18s; }
.vw-wave.on span:nth-child(7) { animation-delay: .09s; }
@keyframes vwBar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}
.vw-status {
  margin: 10px 0 0; font-size: 12px; color: var(--t2); text-align: center; line-height: 1.5;
}
.vw-status.err { color: #e0342c; }
.vw-field { display: block; }
.vw-field > span {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 11.5px; color: var(--t2); margin: 4px 2px 6px;
}
.vw-field > span em { font-style: normal; font-size: 10px; color: var(--t3); }
.vw-textarea {
  width: 100%; min-height: 96px; resize: none; font-family: inherit;
  font-size: 13.5px; line-height: 1.6; color: var(--t1);
  padding: 11px 12px; border-radius: 13px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(120,130,160,.18);
  outline: none;
}
.vw-textarea:focus { border-color: rgba(47,107,255,.55); box-shadow: 0 0 0 3px rgba(47,107,255,.10); }
.vw-tip {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,159,10,.08); border: 1px solid rgba(255,159,10,.18);
  font-size: 10.5px; line-height: 1.6; color: #8a5a00;
}
.vw-tip b { font-size: 11px; }
.vw-tip ul { margin: 5px 0 0; padding-left: 16px; }
.vw-tip li { margin-bottom: 3px; }

/* 旧内核（不支持 color-mix）的降级：只用 rgba，不依赖新语法 */
@supports not (color: color-mix(in srgb, red, blue)) {
  .tw-tag-lv { background: rgba(120,130,160,.12); color: var(--t2); }
  .tw-step.done i { background: rgba(120,130,160,.16); color: var(--t2); }
  .tw-drop-ico { background: rgba(120,130,160,.10); color: var(--t2); }
  .tw-wave-wrap { background: #fff; }
  .tw-done-ico { background: rgba(37,183,155,.14); color: #25B79B; }
  .tw-audio-ico { background: rgba(120,130,160,.12); color: var(--t2); }
}

/* 文档类结果的文件卡 */
.tw-filecard {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 13px; margin-top: 2px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(120,130,160,.14);
}
.tw-filecard .fc-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.tw-filecard .fc-ico svg { width: 20px; height: 20px; }
.tw-filecard .fc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tw-filecard .fc-main b {
  font-size: 12.5px; color: var(--t1); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tw-filecard .fc-main span { font-size: 10.5px; color: var(--t3); }
.tw-filecard .fc-badge {
  flex: none; font-size: 10px; color: var(--success, #25B79B);
  background: rgba(37,183,155,.12); padding: 3px 8px; border-radius: 999px;
}

/* =====================================================================
   工具箱首页（分类折叠 + 导航）
   ===================================================================== */
.tk-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 2px 2px 10px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,255,255,.66));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 16px rgba(18,24,48,.05), inset 0 1px 0 #fff;
}
.tk-hero-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-hero-t b { font-size: 14.5px; font-weight: 750; color: var(--t1); }
.tk-hero-t span {
  font-size: 10.5px; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tk-hero-badge {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 650; color: #1B8A72;
  background: rgba(37,183,155,.12); padding: 4px 8px; border-radius: 999px;
}
.tk-hero-badge svg { width: 11px; height: 11px; }

.tk-chips {
  display: flex; gap: 7px; overflow-x: auto; padding: 0 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tk-chips::-webkit-scrollbar { display: none; }
.tk-chip {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 11px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 11.5px; font-weight: 620; color: var(--t2);
  background: rgba(255,255,255,.8); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(120,130,160,.16);
  transition: transform .14s var(--spring), background .2s, color .2s;
}
.tk-chip:active { transform: scale(.95); }
.tk-chip em {
  font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff;
  background: var(--cc, #5e5ce6); border-radius: 999px; padding: 1px 5px;
}
.tk-chip-all { color: var(--brand); background: rgba(47,107,255,.09); box-shadow: none; }

/* 分类区块 */
.tk-cat {
  margin-bottom: 10px; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 3px 14px rgba(18,24,48,.05), inset 0 1px 0 #fff;
  transition: box-shadow .25s;
}
.tk-cat.flash { box-shadow: 0 0 0 2px var(--cc), 0 6px 20px rgba(18,24,48,.10); }
.tk-cat-h {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: background .18s;
}
.tk-cat-h:active { background: rgba(120,130,160,.07); }
.tk-cat-ico {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: var(--cc, #5e5ce6);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--cc) 32%, transparent);
}
.tk-cat-ico svg { width: 16px; height: 16px; }
.tk-cat-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tk-cat-t b { font-size: 13.5px; font-weight: 700; color: var(--t1); }
.tk-cat-t i {
  font-style: normal; font-size: 10px; color: var(--t3); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.tk-cat-n { flex: none; font-size: 10.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.tk-cat-chev {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; color: var(--t2);
  background: rgba(120,130,160,.10);
  transition: transform .26s var(--ease, ease), background .2s;
}
.tk-cat-chev svg { width: 14px; height: 14px; }
.tk-cat.is-collapsed .tk-cat-chev { transform: rotate(-90deg); }

.tk-cat-body {
  overflow: hidden;
  transition: max-height .3s var(--ease, ease), opacity .22s ease;
  opacity: 1;
}
.tk-cat-body .tool-grid { padding: 0 6px 8px; }

/* 空态 */
.tk-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 46px 16px; text-align: center;
}
.tk-empty-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(120,130,160,.10); color: var(--t3); margin-bottom: 4px;
}
.tk-empty-ico svg { width: 24px; height: 24px; }
.tk-empty p { margin: 0; }

.tk-foot {
  font-size: 10.5px; color: var(--t3); line-height: 1.5;
  padding: 6px 16px 2px; text-align: center;
}

/* 工具磁贴：去掉副标题后收紧，保证每格高度一致 */
.tool-grid { gap: 6px; }
.tool-item { padding: 9px 4px 7px; gap: 4px; min-height: 96px; justify-content: flex-start; }
.tool-item .tool-ico { width: 44px; height: 44px; border-radius: 14px; }
.tool-item .tool-ico svg { width: 22px; height: 22px; }
.tool-item .tool-name { font-size: 12.5px; line-height: 1.25; }
.tool-item .tool-lv { margin-top: auto; font-size: 9.5px; padding: 1px 5px; }

/* =====================================================================
   扫描文档 · 多页合成 PDF
   ===================================================================== */
.scan-wrap { padding-bottom: 4px; }
.scan-empty {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 26px 16px 22px; text-align: center;
}
.se-ico {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(47,107,255,.10); color: var(--brand); margin-bottom: 6px;
}
.se-ico svg { width: 26px; height: 26px; }
.scan-empty b { font-size: 14px; color: var(--t1); }
.scan-empty > span:last-child { font-size: 11px; color: var(--t3); line-height: 1.5; max-width: 250px; }

.scan-pages {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.sp-item {
  position: relative; border-radius: 12px; overflow: hidden;
  background: rgba(120,130,160,.10); aspect-ratio: 3 / 4;
  box-shadow: 0 2px 8px rgba(18,24,48,.08);
  animation: tileIn .28s var(--spring) backwards;
}
.sp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-idx {
  position: absolute; left: 5px; top: 5px; min-width: 18px; height: 18px;
  border-radius: 6px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px;
}
.sp-del {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.sp-del svg { width: 12px; height: 12px; }

.scan-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.scan-act {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 13px 11px; border: 0; cursor: pointer; font-family: inherit; text-align: left;
  border-radius: 16px; background: rgba(255,255,255,.86);
  box-shadow: 0 3px 12px rgba(18,24,48,.06), inset 0 1px 0 #fff;
  transition: transform .16s var(--spring);
}
.scan-act:active { transform: scale(.97); }
.sa-ico {
  width: 34px; height: 34px; border-radius: 11px; color: #fff;
  display: grid; place-items: center; margin-bottom: 6px;
}
.sa-ico svg { width: 17px; height: 17px; }
.sa-ico.cam { background: linear-gradient(140deg,#FF9F5A,#F0682B); }
.sa-ico.alb { background: linear-gradient(140deg,#6FA0FF,#2F5FE8); }
.scan-act b { font-size: 13px; font-weight: 700; color: var(--t1); }
.scan-act > span:last-child { font-size: 10px; color: var(--t3); }
.scan-count { margin: 10px 2px 0; font-size: 10.5px; color: var(--t3); text-align: center; }

.scan-done {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px 6px; text-align: center;
}
.sd-ico {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(37,183,155,.14); color: var(--success, #25B79B); margin-bottom: 6px;
}
.sd-ico svg { width: 26px; height: 26px; }
.scan-done b { font-size: 15px; color: var(--t1); }
.scan-done p {
  margin: 2px 0 0; font-size: 11.5px; color: var(--t3);
  max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sd-meta {
  display: flex; align-items: center; gap: 7px; margin-top: 8px;
  font-size: 10.5px; color: var(--t2);
}
.sd-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--t3); opacity: .5; }

/* =====================================================================
   天气小组件（首页顶栏胶囊 + 详情弹窗）
   ===================================================================== */
.dash-wx {
  flex: none; border: 0; padding: 0; background: none; cursor: pointer;
  margin-right: 8px;
}
.wx-pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px 0 8px; border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 2px 8px rgba(18,24,48,.06);
  color: var(--t2); transition: transform .16s var(--spring), background .2s;
}
.wx-pill svg { width: 15px; height: 15px; color: #FF9F0A; flex: none; }
.wx-pill b {
  font-size: 13px; font-weight: 750; color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.wx-pill em {
  font-style: normal; font-size: 9.5px; color: var(--t3);
  max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wx-pill.is-dim b { color: var(--t3); }
.wx-pill.is-dim svg { color: var(--t3); }
.dash-wx:active .wx-pill { transform: scale(.95); }
@media (max-width: 350px) {
  .wx-pill em { display: none; }
}

/* 弹窗内容 */
.wx-sheet { padding-bottom: 4px; }
.wx-loading, .wx-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 16px; text-align: center; color: var(--t3);
}
.wx-loading { font-size: 12px; }
.wx-loading.is-slow { gap: 8px; }
.wx-loading.is-slow em { font-style: normal; font-size: 10.5px; color: var(--t4, var(--t3)); opacity: .8; }
.wx-empty svg { width: 40px; height: 40px; opacity: .5; }
.wx-empty b { font-size: 13.5px; color: var(--t1); }
.wx-empty p { margin: 0; font-size: 11px; line-height: 1.5; max-width: 240px; }
.wx-empty .wx-retry { margin-top: 6px; height: 34px; padding: 0 16px; font-size: 12px; }

.wx-hero {
  padding: 15px 16px 14px; border-radius: 20px; margin-bottom: 12px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,196,92,.30), transparent 60%),
    radial-gradient(120% 100% at 100% 0%, rgba(110,155,255,.28), transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 26px rgba(30,40,80,.10), inset 0 1px 0 #fff;
}
.wx-hero-top { display: flex; align-items: baseline; justify-content: space-between; }
.wx-hero-city { font-size: 14px; font-weight: 750; color: var(--t1); }
.wx-hero-time { font-size: 9.5px; color: var(--t3); }
.wx-hero-main { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.wx-hero-ico { color: #FF9F0A; display: grid; place-items: center; }
.wx-hero-ico svg { width: 40px; height: 40px; }
.wx-hero-main b {
  font-size: 46px; font-weight: 300; color: var(--t1); line-height: .95;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.wx-hero-main b i { font-style: normal; font-size: 22px; font-weight: 400; vertical-align: top; }
.wx-hero-desc {
  display: flex; flex-direction: column; gap: 2px; margin-left: 2px;
  font-size: 12.5px; font-weight: 650; color: var(--t1);
}
.wx-hero-desc em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--t3); }
.wx-hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 10px; font-size: 10.5px; color: var(--t2);
}
.wx-hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--t3); opacity: .45; }

.wx-card {
  padding: 12px 13px; border-radius: 17px; margin-bottom: 11px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 3px 14px rgba(18,24,48,.05), inset 0 1px 0 #fff;
}
.wx-card-h {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.wx-card-h b { font-size: 12.5px; font-weight: 700; color: var(--t1); }
.wx-card-h span { font-size: 9.5px; color: var(--t3); }
.wx-hour { display: block; width: 100%; height: 108px; }

.wx-days { display: flex; flex-direction: column; }
.wx-day {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-top: 1px solid rgba(120,130,160,.10);
}
.wx-day:first-child { border-top: 0; padding-top: 2px; }
.wd-name { flex: none; width: 34px; font-size: 11.5px; color: var(--t1); font-weight: 600; }
.wd-ico { flex: none; color: #FF9F0A; display: grid; place-items: center; width: 20px; }
.wd-ico svg { width: 17px; height: 17px; }
.wd-desc {
  flex: none; width: 46px; font-size: 10px; color: var(--t3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wd-bar {
  position: relative; flex: 1; height: 4px; border-radius: 3px;
  background: rgba(120,130,160,.14);
}
.wd-bar i {
  position: absolute; top: 0; bottom: 0; border-radius: 3px;
  background: linear-gradient(90deg, #7FB2FF, #FFB259);
}
.wd-temp {
  flex: none; display: flex; gap: 5px; align-items: baseline;
  font-variant-numeric: tabular-nums; width: 58px; justify-content: flex-end;
}
.wd-temp b { font-size: 11.5px; color: var(--t1); font-weight: 700; }
.wd-temp em { font-style: normal; font-size: 11px; color: var(--t3); }

.wx-city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.wx-city-chip {
  border: 0; cursor: pointer; font-family: inherit;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; color: var(--t2);
  background: rgba(120,130,160,.10);
  transition: background .18s, color .18s, transform .14s var(--spring);
}
.wx-city-chip:active { transform: scale(.95); }
.wx-city-chip.on { background: var(--brand); color: #fff; }
.wx-search { display: flex; gap: 7px; }
.wx-input {
  flex: 1; min-width: 0; height: 34px; padding: 0 11px; border-radius: 11px;
  border: 1px solid rgba(120,130,160,.18); background: rgba(255,255,255,.92);
  font-family: inherit; font-size: 12px; color: var(--t1); outline: none;
}
.wx-input:focus { border-color: rgba(47,107,255,.5); }
.wx-go {
  flex: none; height: 34px; padding: 0 13px; border: 0; border-radius: 11px;
  background: var(--brand-grad); color: #fff; font-family: inherit;
  font-size: 11.5px; font-weight: 650; cursor: pointer;
}
.wx-results { margin-top: 6px; }
.wx-result {
  display: flex; align-items: baseline; gap: 7px; width: 100%;
  padding: 8px 9px; border: 0; border-radius: 10px; background: transparent;
  font-family: inherit; cursor: pointer; text-align: left;
}
.wx-result:active { background: rgba(120,130,160,.10); }
.wx-result b { font-size: 12px; color: var(--t1); }
.wx-result span { font-size: 10px; color: var(--t3); }
.wx-src { text-align: center; font-size: 9.5px; color: var(--t3); opacity: .8; margin: 4px 0 0; }

/* 工具磁贴右上角收藏星标 */
.tool-item { position: relative; }
.tool-fav {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 7px;
  color: rgba(120,130,160,.55); opacity: .55;
  transition: opacity .18s, color .18s, transform .16s var(--spring);
}
.tool-fav svg { width: 13px; height: 13px; }
.tool-fav:active { transform: scale(.85); }
.tool-item.is-fav .tool-fav { opacity: 1; color: #FFB020; }
.tool-item.is-fav .tool-fav svg { fill: #FFB020; stroke: #FFB020; }
.tool-item:not(.is-fav) .tool-fav { opacity: 0; }
@media (hover: none) { .tool-item:not(.is-fav) .tool-fav { opacity: .35; } }

/* 扫描：画质增强控件 */
.scan-tools {
  margin-top: 11px; padding: 10px 11px; border-radius: 14px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 2px 10px rgba(18,24,48,.05), inset 0 0 0 1px rgba(255,255,255,.9);
}
.st-line { display: flex; align-items: center; gap: 8px; }
.st-line > b { flex: none; font-size: 11px; font-weight: 650; color: var(--t2); }
.st-chips { display: flex; gap: 5px; flex: 1; }
.st-chip {
  flex: 1; min-width: 0; border: 0; cursor: pointer; font-family: inherit;
  height: 28px; border-radius: 9px; font-size: 10.5px; font-weight: 600; color: var(--t2);
  background: rgba(120,130,160,.10);
  transition: background .18s, color .18s, transform .14s var(--spring);
}
.st-chip:active { transform: scale(.95); }
.st-chip.on { background: var(--brand); color: #fff; }
.st-switch {
  display: flex; align-items: center; gap: 8px; margin-top: 9px;
  font-size: 10.5px; color: var(--t2);
}
.st-switch input { display: none; }
.st-switch i {
  flex: none; width: 34px; height: 20px; border-radius: 999px; position: relative;
  background: rgba(120,130,160,.26); transition: background .2s;
}
.st-switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .22s var(--spring);
}
.st-switch input:checked + i { background: var(--brand); }
.st-switch input:checked + i::after { transform: translateX(14px); }
.sp-rot {
  position: absolute; right: 30px; top: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.sp-rot svg { width: 12px; height: 12px; }

/* 备份提醒 */
.bk-hint {
  padding: 9px 14px 12px; font-size: 10.5px; line-height: 1.5;
  color: var(--t3); border-top: 1px solid rgba(120,130,160,.10);
}
.bk-hint b { color: var(--warning); }

/* 头像裁剪 */
.av-crop { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0 4px; }
.avc-box {
  position: relative; width: 230px; height: 230px; border-radius: 50%;
  overflow: hidden; background: #111; touch-action: none; cursor: grab;
  box-shadow: 0 8px 26px rgba(18,24,48,.22);
}
.avc-box:active { cursor: grabbing; }
.avc-box img { user-select: none; -webkit-user-drag: none; max-width: none; }
.avc-zoom { width: 100%; }

/* 关于弹窗：清理缓存按钮 */
.about-clear {
  width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; border: 0; border-radius: 13px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 650; color: var(--brand);
  background: rgba(47,107,255,.10);
  transition: transform .16s var(--spring), background .2s;
}
.about-clear:active { transform: scale(.98); background: rgba(47,107,255,.16); }
.about-clear svg { width: 15px; height: 15px; }
.about-clear:disabled { opacity: .6; }

/* =====================================================================
   首页小组件中心（widgets.js）
   ===================================================================== */
.wg-pill b { font-size: 12.5px; }
.wg-pill .wg-chip-ico { display: grid; place-items: center; color: var(--wc, #FF9F0A); flex: none; }
.wg-pill .wg-chip-ico svg { width: 15px; height: 15px; }
.wg-pill em { max-width: 52px; }

/* 组件切换条 */
/* 7 个组件用 4 列网格：两行全部露出，不用横向滑动去猜还有没有 */
.wg-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; padding: 2px 2px 12px;
}
.wg-tab {
  width: auto; min-width: 0; border: 0; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 2px 7px; border-radius: 15px; background: rgba(120,130,160,.07);
  transition: background .2s, transform .16s var(--spring);
}
.wg-tab:active { transform: scale(.95); }
.wg-tab i {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; color: var(--wc, #5E5CE6);
  box-shadow: 0 2px 8px rgba(18,24,48,.08);
}
.wg-tab i svg { width: 15px; height: 15px; }
.wg-tab span {
  font-size: 10px; color: var(--t2); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.wg-tab.on { background: color-mix(in srgb, var(--wc) 12%, #fff); }
.wg-tab.on i { background: var(--wc); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--wc) 34%, transparent); }
.wg-tab.on span { color: var(--t1); font-weight: 650; }

.wg-body { min-height: 150px; }
.wg-foot-tip { display: none; }

/* 统计三格 */
.wg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 11px; }
.wg-stat {
  padding: 9px 9px 8px; border-radius: 13px; background: rgba(120,130,160,.07);
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.wg-stat span { font-size: 9.5px; color: var(--t3); }
.wg-stat b {
  font-size: 14px; font-weight: 750; color: var(--t1); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-stat em { font-style: normal; font-size: 9.5px; color: var(--t3); }

/* 健康度 */
.wg-health {
  padding: 11px 12px; border-radius: 14px; margin-bottom: 4px;
  background: linear-gradient(150deg, rgba(47,107,255,.08), rgba(37,183,155,.07));
  border: 1px solid rgba(255,255,255,.8);
}
.wg-health-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.wg-health-top b { font-size: 12.5px; color: var(--t1); font-weight: 700; }
.wg-health-top span { font-size: 10px; color: var(--t3); }
.wg-health-bar { height: 5px; border-radius: 3px; background: rgba(120,130,160,.16); overflow: hidden; }
.wg-health-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #25B79B, #2F6BFF);
  transition: width .4s ease;
}

/* 分区标题 */
.wg-sec {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 14px 2px 7px;
}
.wg-sec b { font-size: 11.5px; font-weight: 700; color: var(--t2); }
.wg-sec span { font-size: 10px; color: var(--t3); }

/* 列表行 */
.wg-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 9px; border: 0; border-radius: 12px; background: transparent;
  font-family: inherit; text-align: left; cursor: pointer;
  transition: background .18s;
}
.wg-row:active { background: rgba(120,130,160,.10); }
.wg-row-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(120,130,160,.10); color: var(--t2);
}
.wg-row-ico svg { width: 15px; height: 15px; }
.wg-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wg-row-main b {
  font-size: 12.5px; color: var(--t1); font-weight: 620;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-row-main span { font-size: 10px; color: var(--t3); }
.wg-row-size { flex: none; font-size: 10.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.wg-row-chev { flex: none; color: var(--t3); display: grid; place-items: center; }
.wg-row-chev svg { width: 13px; height: 13px; }

/* 重复文件 */
.wg-dup {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; border-radius: 12px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(120,130,160,.10); margin-bottom: 6px;
}
.wg-dup-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: #2F6BFF; background: rgba(47,107,255,.10);
}
.wg-dup-ico svg { width: 15px; height: 15px; }
.wg-dup-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wg-dup-main b {
  font-size: 12px; color: var(--t1); font-weight: 620;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-dup-main span { font-size: 10px; color: var(--t3); }
.wg-mini {
  flex: none; height: 26px; padding: 0 10px; border: 0; border-radius: 8px;
  font-family: inherit; font-size: 11px; font-weight: 650; color: var(--brand);
  background: rgba(47,107,255,.10); cursor: pointer;
}
.wg-mini:active { transform: scale(.95); }
.wg-ok {
  display: flex; align-items: center; gap: 7px; padding: 10px 11px;
  border-radius: 12px; background: rgba(37,183,155,.08);
  font-size: 11.5px; color: #1B8A72;
}
.wg-ok svg { width: 14px; height: 14px; }

/* 待办 */
.wg-add { display: flex; gap: 7px; margin-bottom: 10px; }
.wg-add-cd { flex-wrap: wrap; }
.wg-add-cd .wg-input { flex: 1 1 100%; }
.wg-add-cd .wg-input.date { flex: 1 1 auto; }
.wg-input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(120,130,160,.18); background: rgba(255,255,255,.92);
  font-family: inherit; font-size: 13px; color: var(--t1); outline: none;
}
.wg-input:focus { border-color: rgba(47,107,255,.5); box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
.wg-add-btn {
  flex: none; width: 38px; height: 38px; border: 0; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--brand-grad);
  box-shadow: 0 4px 12px rgba(47,107,255,.28);
}
.wg-add-btn:active { transform: scale(.95); }
.wg-add-btn svg { width: 17px; height: 17px; }

.wg-todo {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 12px; margin-bottom: 6px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(120,130,160,.10);
  transition: background .2s;
}
.wg-todo.done { background: rgba(120,130,160,.06); }
.wg-check {
  flex: none; width: 21px; height: 21px; border-radius: 7px; cursor: pointer;
  border: 1.5px solid rgba(120,130,160,.35); background: transparent;
  display: grid; place-items: center; color: transparent;
  transition: background .2s, border-color .2s, color .2s, transform .14s var(--spring);
}
.wg-check svg { width: 12px; height: 12px; }
.wg-check.on { background: #25B79B; border-color: #25B79B; color: #fff; }
.wg-check:active { transform: scale(.9); }
.wg-todo-t { flex: 1; min-width: 0; font-size: 12.5px; color: var(--t1); line-height: 1.45; word-break: break-word; }
.wg-todo.done .wg-todo-t { color: var(--t3); text-decoration: line-through; }
.wg-del {
  flex: none; width: 24px; height: 24px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--t3); display: grid; place-items: center;
}
.wg-del:active { background: rgba(255,80,80,.12); color: #e0342c; }
.wg-del svg { width: 12px; height: 12px; }

/* 便签 / 剪贴板 */
.wg-note-wrap { position: relative; }
.wg-ta {
  width: 100%; min-height: 132px; resize: vertical; font-family: inherit;
  font-size: 13.5px; line-height: 1.65; color: var(--t1);
  padding: 12px 13px 26px; border-radius: 14px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(120,130,160,.16);
  outline: none;
}
.wg-ta:focus { border-color: rgba(47,107,255,.5); box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
.wg-note-foot {
  position: absolute; left: 13px; right: 13px; bottom: 7px;
  display: flex; justify-content: space-between; pointer-events: none;
  font-size: 9.5px; color: var(--t3);
}
.wg-note { margin: 9px 2px 2px; font-size: 10.5px; color: var(--t3); line-height: 1.5; }
.wg-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wg-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 40px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 650; color: var(--t2); background: rgba(120,130,160,.10);
}
.wg-act.main { color: #fff; background: var(--brand-grad); box-shadow: 0 4px 12px rgba(47,107,255,.26); }
.wg-act svg { width: 15px; height: 15px; }
.wg-act:active { transform: scale(.97); }

/* 倒数日 */
.wg-cd {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 13px; margin-bottom: 6px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(120,130,160,.10);
}
.wg-cd.today { background: rgba(255,159,10,.10); border-color: rgba(255,159,10,.24); }
.wg-cd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wg-cd-main b {
  font-size: 12.5px; color: var(--t1); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-cd-main span { font-size: 10px; color: var(--t3); }
.wg-cd-d {
  flex: none; font-size: 12px; font-weight: 750; color: #E8763C;
  font-variant-numeric: tabular-nums;
}
.wg-cd.today .wg-cd-d { color: #D2691E; }

/* 其他组件：天气摘要 */
.wg-wx {
  padding: 13px 14px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(255,196,92,.20), rgba(110,155,255,.16));
  border: 1px solid rgba(255,255,255,.85);
}
.wg-wx-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wg-wx-ico { color: #FF9F0A; display: grid; place-items: center; }
.wg-wx-ico svg { width: 42px; height: 42px; }
.wg-wx-main b {
  font-size: 36px; font-weight: 300; color: var(--t1); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wg-wx-main b i { font-style: normal; font-size: 18px; vertical-align: top; }
.wg-wx-main span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--t2); }
.wg-wx-t { margin: 9px 0 0; font-size: 10px; color: var(--t3); }
.wg-wx-chips { flex: 0 0 100%; display: flex; gap: 6px; margin-top: 2px; }
.wg-wx-chips span {
  font-size: 10.5px; color: var(--t2); padding: 3px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums;
}
.wg-link {
  margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 650; color: var(--brand);
}

/* 空态 */
.wg-empty {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 28px 16px 24px; text-align: center;
}
.wg-empty.sm { padding: 20px 16px 18px; }
.wg-empty > svg { width: 34px; height: 34px; opacity: .45; margin-bottom: 2px; }
.wg-empty b { font-size: 13px; color: var(--t1); }
.wg-empty p { margin: 0; font-size: 11px; color: var(--t3); line-height: 1.5; max-width: 250px; }

@supports not (color: color-mix(in srgb, red, blue)) {
  .wg-tab.on { background: rgba(120,130,160,.12); }
  .wg-tab.on i { background: var(--wc, #5E5CE6); }
}

/* =====================================================================
   清理缓存：全屏进度遮罩（settings.js）
   ===================================================================== */
.clr-mask {
  position: fixed; inset: 0; z-index: 9900;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef1fb 0%, #e7ecfa 45%, #ece7fb 100%);
  animation: fade .2s var(--ease, ease);
}
.clr-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 28px; text-align: center; max-width: 320px;
}
.clr-ico {
  width: 62px; height: 62px; border-radius: 20px; color: #fff;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--brand-grad);
  box-shadow: 0 12px 30px rgba(47,107,255,.32);
  animation: clrSpin 1.4s linear infinite;
}
.clr-ico svg { width: 28px; height: 28px; }
@keyframes clrSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.clr-box b { font-size: 16px; font-weight: 750; color: var(--t1); }
.clr-box p {
  margin: 6px 0 14px; font-size: 12px; color: var(--t3); line-height: 1.5;
  min-height: 18px;
}
.clr-bar {
  width: 190px; height: 5px; border-radius: 3px; overflow: hidden;
  background: rgba(120,130,160,.20);
}
.clr-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: var(--brand-grad);
  transition: width .32s ease;
}

/* 轻量启动遮罩：老用户冷启动时不再白屏 */
.splash.quick .splash-logo { animation: clrPulse 1.7s ease-in-out infinite; }
@keyframes clrPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 34px rgba(100,100,250,.30); }
  50% { transform: scale(1.05); box-shadow: 0 18px 42px rgba(100,100,250,.44); }
}
.splash.quick .splash-tt { font-size: 15.5px; color: var(--t2); font-weight: 650; }
.splash.quick .splash-sub { font-size: 11.5px; color: var(--t3); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .clr-ico, .splash.quick .splash-logo { animation: none; }
}

/* =====================================================================
   首页概览卡（替掉原来 4 个同款小卡）
   ===================================================================== */
.ov-card {
  border-radius: 22px; padding: 15px 16px 13px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(47,107,255,.14), transparent 58%),
    radial-gradient(120% 100% at 100% 0%, rgba(122,99,255,.13), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(30,40,80,.10), inset 0 1px 0 #fff;
}
.ov-main { display: flex; gap: 14px; align-items: stretch; }
.ov-hero { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-k { font-size: 11.5px; color: var(--t3); }
.ov-v { display: flex; align-items: baseline; gap: 3px; margin: 2px 0 1px; }
.ov-v b {
  font-size: 40px; font-weight: 250; line-height: 1; color: var(--t1);
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.ov-v i { font-style: normal; font-size: 12px; color: var(--t3); }
.ov-hero em {
  font-style: normal; font-size: 10px; color: var(--t3); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-spark { display: flex; align-items: flex-end; gap: 3px; height: 24px; margin-top: auto; padding-top: 8px; }
.ov-spark i {
  flex: 1; max-width: 14px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(47,107,255,.55), rgba(47,107,255,.16));
}
.ov-side {
  flex: none; width: 132px; display: flex; flex-direction: column; gap: 6px;
  padding-left: 13px; border-left: 1px solid rgba(120,130,160,.14);
}
.ov-line { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.ov-line span { font-size: 10px; color: var(--t3); }
.ov-line b {
  font-size: 13px; font-weight: 720; color: var(--t1);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ov-line b i { font-style: normal; font-size: 9.5px; color: var(--t3); font-weight: 500; }
.ov-foot { margin-top: auto; font-size: 9px; color: var(--t3); line-height: 1.4; }

/* 首页解析入口 */
.px-bar {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 10px; padding: 10px 12px; border: 0; cursor: pointer;
  border-radius: 16px; text-align: left; font-family: inherit;
  background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
  box-shadow: 0 4px 16px rgba(18,24,48,.06), inset 0 0 0 1px rgba(255,255,255,.9);
  transition: transform .16s var(--spring);
}
.px-bar:active { transform: scale(.985); }
.px-bar-ico {
  flex: none; width: 34px; height: 34px; border-radius: 11px; color: #fff;
  display: grid; place-items: center; background: linear-gradient(140deg,#FF6A88,#E8455F);
  box-shadow: 0 5px 14px rgba(232,69,95,.26);
}
.px-bar-ico svg { width: 17px; height: 17px; }
.px-bar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.px-bar-main b { font-size: 13px; color: var(--t1); font-weight: 700; }
.px-bar-main em {
  font-style: normal; font-size: 10px; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.px-bar-go { flex: none; font-size: 11.5px; font-weight: 700; color: #E8455F; }
/* 首页解析入口右侧：解析 + 剩余额度 */
.px-bar-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.px-bar-quota {
  font-style: normal; font-size: 9.5px; color: var(--t3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.px-bar-quota.low { color: #E8455F; }

/* =====================================================================
   视频解析
   ===================================================================== */
.px-lead { margin: 2px 2px 10px; font-size: 11.5px; color: var(--t3); line-height: 1.55; }
.px-input {
  width: 100%; min-height: 104px; resize: vertical; font-family: inherit;
  font-size: 13px; line-height: 1.6; color: var(--t1);
  padding: 11px 12px; border-radius: 13px; outline: none;
  background: rgba(255,255,255,.94); border: 1px solid rgba(120,130,160,.18);
}
.px-input:focus { border-color: rgba(47,107,255,.5); box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
.px-row { display: flex; gap: 8px; margin-top: 9px; }
.px-paste {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px;
  border: 0; border-radius: 10px; cursor: pointer; font-family: inherit;
  font-size: 11.5px; color: var(--t2); background: rgba(120,130,160,.10);
}
.px-paste svg { width: 13px; height: 13px; }
.px-paste:active { transform: scale(.96); }
.px-tip { margin: 10px 2px 2px; font-size: 10px; color: var(--t3); line-height: 1.6; }
.px-tip b { color: var(--t2); }

/* 额度条 */
.px-quota {
  display: flex; align-items: baseline; gap: 6px;
  margin: 0 2px 10px; padding: 8px 11px; border-radius: 11px;
  background: linear-gradient(120deg, rgba(255,106,136,.10), rgba(232,69,95,.05));
  font-size: 11px; color: var(--t2);
}
.px-quota b { font-size: 12.5px; color: #D8384F; font-weight: 700; }
.px-quota em { font-style: normal; font-size: 10px; color: var(--t3); margin-left: auto; }

/* 最近解析 */
.px-hist { margin-top: 12px; }
.px-hist-h {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 2px 6px;
}
.px-hist-h b { font-size: 11.5px; color: var(--t2); font-weight: 700; }
.px-hist-clear {
  border: 0; background: none; padding: 2px 4px; cursor: pointer;
  font-family: inherit; font-size: 10.5px; color: var(--t3);
}
.px-hist-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.8);
  margin-bottom: 6px;
}
.px-hist-row:active { transform: scale(.99); background: rgba(255,255,255,.9); }
.px-hist-row .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.px-hist-row .hx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.px-hist-row .hx b {
  font-size: 11.5px; color: var(--t1); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.px-hist-row .hx em { font-style: normal; font-size: 9.5px; color: var(--t3); }
.px-hist-row .hgo {
  flex: none; border: 0; border-radius: 8px; padding: 4px 8px; cursor: pointer;
  font-family: inherit; font-size: 10px; color: #2F6BFF;
  background: rgba(47,107,255,.10);
}

.px-card { display: flex; gap: 12px; padding: 2px 0 10px; }
.px-card.solo { display: block; padding-bottom: 10px; }
.px-card.solo .px-meta { padding-top: 0; }
.px-cover {
  position: relative; flex: none; width: 108px; height: 144px; border-radius: 14px;
  overflow: hidden; background: rgba(120,130,160,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); font-size: 11px;
}
.px-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-badge {
  position: absolute; left: 6px; top: 6px; font-style: normal;
  font-size: 9.5px; font-weight: 700; color: #fff; padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.24);
}
.px-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.px-meta > b {
  font-size: 13.5px; color: var(--t1); line-height: 1.45; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.px-meta > span { font-size: 11px; color: var(--t3); }
.px-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.px-chip {
  font-size: 9.5px; color: var(--t2); background: rgba(120,130,160,.10);
  padding: 3px 7px; border-radius: 7px;
}
.px-note { font-size: 10px; color: var(--t3); line-height: 1.5; padding: 0 2px; }

/* 图文笔记：一组图的缩略网格。最多显示 9 张，第 9 张盖一层「+N」 */
.px-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 0 0 10px;
}
.px-gi {
  position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 11px; overflow: hidden;
  background: rgba(120,130,160,.10);
}
.px-gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-gi.bad { display: none; }
.px-gi i {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12,18,38,.52); color: #fff; font-style: normal;
  font-size: 15px; font-weight: 700; letter-spacing: .3px;
}

/* 图集勾选模式：点选单张/多张保存，「全选↔清空」在右上角 */
.px-pickbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2px 8px;
}
.px-pickbar span { font-size: 11px; color: var(--t3); font-weight: 600; }
.px-link {
  border: 0; background: none; padding: 4px 6px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--brand);
}
.px-gallery.pick .px-gi { cursor: pointer; }
.px-ck {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.95);
  background: rgba(15,20,40,.28); box-shadow: 0 1px 4px rgba(10,15,40,.30);
}
.px-gi.sel .px-ck { background: var(--brand); }
.px-gi.sel .px-ck::after {
  content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.px-gi.sel { outline: 2px solid var(--brand); outline-offset: -2px; }
.px-gallery.pick .px-gi:active { transform: scale(.96); }
.px-gallery.pick .px-gi { transition: transform .12s ease; }

.px-cfg { display: flex; flex-direction: column; gap: 10px; }
.px-cfg label { display: flex; flex-direction: column; gap: 5px; }
.px-cfg label span { font-size: 11.5px; color: var(--t2); }
.px-cfg input {
  height: 40px; padding: 0 12px; border-radius: 12px; font-family: inherit; font-size: 12.5px;
  border: 1px solid rgba(120,130,160,.18); background: rgba(255,255,255,.94);
  color: var(--t1); outline: none;
}
.px-cfg input:focus { border-color: rgba(47,107,255,.5); }
.px-seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(120,130,160,.10); }
.px-seg button {
  flex: 1; height: 32px; border: 0; border-radius: 9px; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 600; color: var(--t2); background: transparent;
}
.px-seg button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(18,24,48,.10); }

/* 解析进度遮罩 */
.px-mask {
  position: fixed; inset: 0; z-index: 9800; display: flex; align-items: center; justify-content: center;
  background: rgba(18,22,40,.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade .18s ease;
}
.px-mask.out { animation: fade .2s reverse forwards; }
.px-box {
  width: min(78vw, 280px); padding: 22px 18px 18px; border-radius: 22px;
  background: rgba(255,255,255,.97); text-align: center;
  box-shadow: 0 18px 50px rgba(10,15,40,.28);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.px-ring { position: relative; width: 74px; height: 74px; margin-bottom: 2px; }
.px-ring svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); z-index: 1; }
.px-ring circle { fill: none; stroke-width: 6; }
.px-ring circle.bg { stroke: rgba(120,130,160,.16); }
.px-ring circle.fg {
  stroke: #E8455F; stroke-linecap: round;
  transition: stroke-dashoffset .18s linear;
  filter: drop-shadow(0 0 4px rgba(232,69,95,.35));
}
/* 环外一圈呼吸光：数字在动的时候，外面也在动，不是一张静止的图 */
.px-halo {
  position: absolute; inset: -7px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,69,95,.16), transparent 68%);
  animation: pxHalo 2.1s ease-in-out infinite;
}
@keyframes pxHalo {
  0%, 100% { transform: scale(.92); opacity: .5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.px-ring b {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-size: 14px; font-weight: 750; color: var(--t1); font-variant-numeric: tabular-nums;
}
.px-title { font-size: 14px; color: var(--t1); font-weight: 700; }
.px-step {
  margin: 0; font-size: 11px; color: var(--t3); line-height: 1.5; min-height: 32px;
  max-width: 220px; word-break: break-all;
  animation: pxStepIn .32s ease;
}
@keyframes pxStepIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   全局播放器
   ===================================================================== */
.pl-mini {
  position: fixed; left: 10px; right: 10px; z-index: 60;
  /* 抬高到悬浮 ＋ 之上：原来 66px 会被底部导航和 ＋ 压住（图 2 的问题） */
  bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 18px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(18,24,48,.18), inset 0 0 0 1px rgba(255,255,255,.9);
  animation: plUp .24s var(--ease, ease);
  /* 手势：整条都能按住拖，松手吸附到最近的左右边缘 */
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
/* 拖动过：位置由内联 left/top 决定，入场动画和过渡都要让路，否则会「追手指」 */
.pl-mini.free { animation: none; }
.pl-mini:not(.dragging) {
  transition: left .26s var(--spring, cubic-bezier(.2,1.1,.35,1)),
              top .26s var(--spring, cubic-bezier(.2,1.1,.35,1));
}
.pl-mini.dragging {
  cursor: grabbing; transition: none !important;
  transform: scale(1.03); opacity: .94;
  box-shadow: 0 18px 40px rgba(18,24,48,.26), inset 0 0 0 1px rgba(255,255,255,.95);
}
.pl-m-grip { display: none; }
@keyframes plUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-m-cover {
  position: relative;
  flex: none; width: 38px; height: 38px; border-radius: 11px; border: 0; cursor: pointer;
  background: linear-gradient(140deg,#7A63FF,#2F6BFF); background-size: cover; background-position: center;
  display: grid; place-items: center; color: #fff; font-size: 15px;
  padding: 0; overflow: hidden;
}
/* 圆球形态：收在右侧，只剩封面 + 一圈进度 */
.pl-mini.ball {
  left: auto; right: 14px;
  width: 60px; height: 60px; padding: 5px; gap: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 12px 30px rgba(18,24,48,.28), inset 0 0 0 1px rgba(255,255,255,.9);
}
.pl-mini.ball > * { display: none; }
.pl-mini.ball .pl-m-cover {
  display: grid; width: 50px; height: 50px; border-radius: 50%;
  overflow: visible;
  animation: plBallIn .22s var(--spring, ease);
}
.pl-mini.ball .pl-m-ring {
  display: block; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(#2F6BFF var(--p, 0%), rgba(120,130,160,.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.4px), #000 calc(100% - 3px));
  pointer-events: none;
}
.pl-m-ring { display: none; }
@keyframes plBallIn { from { transform: scale(.75); opacity: .6; } to { transform: none; opacity: 1; } }
.pl-mini.ball.playing .pl-m-cover { animation: plBallPulse 2.6s ease-in-out infinite; }
@keyframes plBallPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,107,255,.32); }
  50% { box-shadow: 0 0 0 7px rgba(47,107,255,0); }
}
/* 唱片形态：播放时封面自己转，暂停就停在原地（不是「一直转」的假动效） */
.pl-mini.ball .pl-m-cover span {
  animation: plSpin 9s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
.pl-mini.ball.playing .pl-m-cover span { animation-play-state: running; }
@keyframes plSpin { to { transform: rotate(1turn); } }
/* 中心孔 + 边缘暗角：静止时也看得出是张唱片，而不是一张圆头像 */
.pl-mini.ball .pl-m-cover::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none; z-index: 2;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(14, 18, 36, .72) 0 1.8px,
      rgba(255, 255, 255, .95) 2.4px 3.8px,
      rgba(14, 18, 36, .34) 4.4px 5.2px,
      transparent 5.8px),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, .28) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
/* 封面内层：显式铺满，展开 / 圆球两种形态都不会缩成 0 尺寸 */
.pl-m-cover span {
  position: absolute; inset: 0; border-radius: inherit;
  background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 15px;
}
.pl-m-main { flex: 1; min-width: 0; cursor: pointer; }
.pl-m-main b {
  display: block; font-size: 12px; color: var(--t1); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-m-main span { display: block; font-size: 9.5px; color: var(--t3); margin-top: 1px; }
.pl-m-bar {
  height: 2.5px; border-radius: 2px; background: rgba(120,130,160,.18);
  margin-top: 5px; overflow: hidden;
}
.pl-m-bar i { display: block; height: 100%; width: 0; background: var(--brand-grad); border-radius: 2px; }
.pl-m-btn {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(120,130,160,.10); color: var(--t2); display: grid; place-items: center;
}
.pl-m-btn svg { width: 14px; height: 14px; }
.pl-m-btn.main { width: 34px; height: 34px; background: var(--brand-grad); color: #fff; box-shadow: 0 4px 12px rgba(47,107,255,.30); }
.pl-mini.mirror {
  box-shadow: 0 10px 30px rgba(18,24,48,.18), inset 0 0 0 1px rgba(255,255,255,.9),
    inset 0 0 0 1.6px rgba(122,99,255,.30);
}
.pl-mini.mirror .pl-m-bar i { background: linear-gradient(90deg,#7A63FF,#2F6BFF); }
.pl-m-close {
  flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--t3); display: grid; place-items: center;
}
.pl-m-close svg { width: 12px; height: 12px; }
.pl-m-min {
  flex: none; width: 24px; height: 24px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(120,130,160,.10); color: var(--t3); display: grid; place-items: center;
}
.pl-m-min svg { width: 12px; height: 12px; }
.pl-m-min:active { transform: scale(.92); }
.pl-m-side[hidden] { display: none; }

.pl-full { display: flex; flex-direction: column; align-items: center; padding: 2px 0 4px; }
.pl-cover {
  position: relative; flex: none;
  width: 168px; height: 168px; margin: 2px 0 12px; padding: 0; border: 0; cursor: pointer;
  border-radius: 26px; background: linear-gradient(150deg,#6C7BFF,#2F6BFF);
  background-size: cover; background-position: center;
  display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 42px;
  box-shadow: 0 16px 40px rgba(30,40,90,.26);
  -webkit-tap-highlight-color: transparent;
  transition: width .28s var(--spring,ease), height .28s var(--spring,ease),
              margin .28s var(--spring,ease), opacity .2s ease;
}
.pl-cover:active { transform: scale(.985); }
.pl-cover.empty::after { content: '♪'; }
.pl-cover.empty span { display: none; }
.pl-cover-zen {
  position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(10,16,40,.34); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.pl-cover-zen svg { width: 11px; height: 11px; }
.pl-cover:active .pl-cover-zen { opacity: 1; }
/* 收起封面：歌词吃满整屏 */
.pl-full.zen .pl-cover { width: 0; height: 0; margin: 0; opacity: 0; pointer-events: none; }

.pl-meta { text-align: center; max-width: 100%; }
.pl-meta b {
  display: block; font-size: 15px; color: var(--t1); font-weight: 700;
  max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-meta span { display: block; margin-top: 4px; font-size: 11px; color: var(--t3); }

/*---------- 歌词区：全屏播放器里最大的一块 ----------*/
.pl-lyric {
  display: flex; flex-direction: column; width: 100%; min-height: 0;
  margin-top: 12px; padding-top: 8px;
  border-top: 1px solid rgba(120,130,160,.10);
}
.pl-lyric:empty { display: none; }
.pl-lyric-top {
  display: flex; align-items: center; gap: 8px; min-height: 22px;
  padding: 0 2px 6px; flex: none;
}
.pl-lrc-badge {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0;
  height: 20px; padding: 0 8px; border-radius: 7px;
  font-size: 9.5px; color: var(--t3); background: rgba(120,130,160,.09);
}
.pl-lrc-badge svg { width: 10px; height: 10px; flex: none; }
.pl-lrc-badge b { font-weight: 650; color: var(--t2); flex: none; }
.pl-lrc-badge em {
  font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px; color: var(--t3);
}
.pl-lrc-badge.ok { background: rgba(47,107,255,.09); color: #2F6BFF; }
.pl-lrc-badge.ok b, .pl-lrc-badge.ok em { color: #2F6BFF; }
.pl-lrc-badge.ok em { color: rgba(47,107,255,.72); }
/* 画面字幕：紫色，一眼能跟「曲库匹配」区分开 */
.pl-lrc-badge.ok.ocr { background: rgba(124,92,255,.10); color: #6D4BFF; }
.pl-lrc-badge.ok.ocr b, .pl-lrc-badge.ok.ocr em { color: #6D4BFF; }
.pl-lrc-badge.ok.ocr em { color: rgba(109,75,255,.7); }
.pl-lrc-badge.loading.ocr i {
  border-color: rgba(109,75,255,.3); border-top-color: #6D4BFF;
}
.pl-lrc-badge.none { background: rgba(120,130,160,.09); }
.pl-lrc-badge.loading i {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(47,107,255,.3); border-top-color: #2F6BFF;
  animation: plSpin .8s linear infinite;
}
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-lrc-acts { margin-left: auto; display: inline-flex; gap: 6px; flex: none; }
.pl-lrc-mini {
  height: 22px; padding: 0 9px; border: 0; border-radius: 7px; cursor: pointer;
  font-family: inherit; font-size: 9.5px; color: var(--t2);
  background: rgba(120,130,160,.10);
  -webkit-tap-highlight-color: transparent;
}
.pl-lrc-mini:active { transform: scale(.95); }

.pl-lrc {
  position: relative;
  width: 100%; height: clamp(158px, 25vh, 250px); overflow-y: auto;
  text-align: center; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 6px 4px 26px; scroll-behavior: smooth;
  -webkit-mask: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 22px), transparent);
  mask: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 22px), transparent);
}
.pl-full.zen .pl-lrc { height: clamp(250px, 42vh, 420px); }
.pl-lrc.is-empty { height: auto; min-height: 132px; display: grid; place-items: center;
  -webkit-mask: none; mask: none; padding: 6px 4px 10px; }

.pl-lrc-line {
  padding: 6px 10px; font-size: 12.5px; line-height: 1.45; color: var(--t3);
  transition: color .25s, transform .25s, opacity .25s, font-size .2s;
  cursor: pointer; opacity: .55;
}
.pl-lrc-line span {
  display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.pl-lrc-line.on {
  opacity: 1; font-size: 14.5px; font-weight: 700; transform: scale(1.02);
}
/* 当前行按时间从左到右填色，像卡拉 OK 一样走 */
.pl-lrc-line.on span {
  background-image: linear-gradient(90deg,
    #2F6BFF 0 var(--k, 0%), var(--t1) var(--k, 0%) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pl-lrc-empty {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 18px; text-align: center;
}
.pl-lrc-empty b { font-size: 12.5px; color: var(--t2); font-weight: 650; }
.pl-lrc-empty > span { font-size: 10.5px; color: var(--t3); line-height: 1.65; }
.pl-lrc-cta {
  margin-top: 3px; height: 30px; padding: 0 14px; border: 0; border-radius: 10px;
  background: rgba(47,107,255,.10); color: #2F6BFF;
  font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.pl-lrc-cta:active { transform: scale(.96); }
.pl-lrc-dots { display: flex; gap: 4px; margin-bottom: 2px; }
.pl-lrc-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: #2F6BFF; opacity: .35;
  animation: plDots 1.1s ease-in-out infinite;
}
.pl-lrc-dots i:nth-child(2) { animation-delay: .16s; }
.pl-lrc-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes plDots { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.pl-prog { width: 100%; margin-top: 12px; }
.pl-range { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 3px;
  background: rgba(120,130,160,.22); outline: none; }
.pl-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(18,24,48,.2);
}
.pl-times {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 10px; color: var(--t3); font-variant-numeric: tabular-nums;
}
.pl-ctrl { display: flex; align-items: center; gap: 26px; margin: 8px 0 2px; }
.pl-c-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(120,130,160,.10); color: var(--t1); display: grid; place-items: center;
}
.pl-c-btn svg { width: 20px; height: 20px; }
.pl-c-btn.main {
  width: 62px; height: 62px; background: var(--brand-grad); color: #fff;
  box-shadow: 0 10px 26px rgba(47,107,255,.32);
}
.pl-c-btn.main svg { width: 26px; height: 26px; }

/* =====================================================================
   全屏播放器 v1.7 —— 重做成沉浸式播放页
   · 整页背景是封面放大模糊 + 浅色渐变罩：有歌的颜色，又不压住歌词
   · 封面 / 歌名 / 歌词 / 进度 / 控制走一条竖线，一屏放下，不用滚
   · 倍速 / 歌词 / 列表 收进底排三个小按钮，不再和播放键抢位置
     （v1.6 的大 Sheet 里，主播放键会被页脚三个灰按钮挤出可视区）
   ===================================================================== */
.pl-stage {
  position: fixed; inset: 0; z-index: 360;
  display: flex; flex-direction: column;
  background: #e9eef9;
  transform: translateY(100%); opacity: .55;
  transition: transform .38s cubic-bezier(.22, .9, .24, 1), opacity .3s ease;
  will-change: transform, opacity;
  overscroll-behavior: contain;
}
.pl-stage.in { transform: none; opacity: 1; }
.pl-stage.out { transform: translateY(100%); opacity: 0; }

.pl-bg {
  position: absolute; inset: -46px; z-index: 0;
  background: linear-gradient(150deg, #7C8BFF, #2F6BFF);
  background-size: cover; background-position: center;
  filter: blur(48px) saturate(1.7) brightness(1.05);
  transform: scale(1.28); opacity: .58;
}
.pl-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(255, 255, 255, .74), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(248, 250, 255, .74) 0%, rgba(238, 242, 252, .90) 46%, rgba(231, 236, 249, .97) 100%);
}

.pl-stage .pl-full {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px calc(10px + env(safe-area-inset-bottom));
}

/* ---------- 顶栏：收起 / 来源 / 只看歌词 ---------- */
.pf-top {
  width: 100%; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 0 6px;
}
.pf-ico {
  width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .62); color: var(--t2);
  box-shadow: 0 1px 3px rgba(26, 38, 86, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--spring);
}
.pf-ico svg { width: 16px; height: 16px; }
.pf-ico:active { transform: scale(.94); }
.pf-src {
  flex: 1; min-width: 0; text-align: center;
  font-size: 10.5px; letter-spacing: .4px; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 封面 ---------- */
/* ---------- 封面 / 频谱（v1.9.0） ----------
   两者叠在同一格：位置与圆角完全一致，切换时只做溶解，
   视觉上像「封面化成了声音」，而不是换了一个控件。 */
.pf-art {
  flex: none; display: grid; place-items: center; margin: 4px 0 14px;
  position: relative;
}

.pl-viz {
  grid-area: 1 / 1;
  width: clamp(150px, 44vw, 246px);
  height: clamp(150px, 44vw, 246px);
  border-radius: 26px;
  opacity: 0; transform: scale(.97);
  pointer-events: none;
  background: #0B0E15;
  box-shadow: 0 20px 44px rgba(24, 36, 84, .30), inset 0 0 0 1px rgba(255, 255, 255, .10);
  transition: opacity .30s var(--ease, ease),
              transform .34s cubic-bezier(.22, .9, .24, 1),
              border-radius .3s;
}

.pf-art.viz .pl-cover {
  opacity: 0;
  transform: scale(.955);
  pointer-events: none;
}

.pf-art.viz .pl-viz {
  opacity: 1;
  transform: none;
}

.pl-stage .pl-full.zen .pl-viz {
  width: 0; height: 0; opacity: 0; border-radius: 20px;
}
.pl-stage .pl-cover {
  grid-area: 1 / 1;
  width: clamp(150px, 44vw, 246px); height: clamp(150px, 44vw, 246px);
  margin: 0; border-radius: 26px;
  box-shadow: 0 20px 44px rgba(24, 36, 84, .26), 0 0 0 1px rgba(255, 255, 255, .55) inset;
  transition: width .34s cubic-bezier(.22, .9, .24, 1), height .34s cubic-bezier(.22, .9, .24, 1),
              border-radius .3s, opacity .22s;
}
.pl-stage .pl-cover::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 55%);
}
/* 播放中：封面外圈转一道很淡的光晕。
   不动封面本体 —— 元素一旦带位移/缩放动画，点击命中区就一直在动，
   自动化点不中，真机上「点封面收起」也会偶尔落空。 */
.pl-stage .pl-cover { isolation: isolate; }
.pl-stage .pl-cover.playing::after {
  content: ''; position: absolute; inset: -10px; z-index: -1; pointer-events: none;
  border-radius: 34px;
  background: conic-gradient(from 0deg,
    rgba(47, 107, 255, .55), rgba(255, 255, 255, 0) 30%,
    rgba(124, 92, 255, .5) 55%, rgba(47, 107, 255, 0) 80%, rgba(47, 107, 255, .55));
  filter: blur(11px); opacity: .6;
  animation: pfHalo 9s linear infinite;
}
@keyframes pfHalo { to { transform: rotate(360deg); } }
.pl-stage .pl-full.zen .pl-cover { width: 0; height: 0; opacity: 0; border-radius: 20px; }
.pl-stage .pl-full.zen .pf-art { margin: 0; }

/* ---------- 歌名 / 作者 ---------- */
.pl-stage .pl-meta { flex: none; width: 100%; text-align: center; }
.pl-stage .pl-meta b {
  max-width: 100%; font-size: 16.5px; line-height: 1.42;
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pl-stage .pl-meta span { margin-top: 5px; font-size: 11px; }

/* ---------- 歌词 ---------- */
.pl-stage .pl-lyric {
  flex: 1; min-height: 0; width: 100%;
  margin-top: 6px; padding-top: 0; border-top: 0;
}
.pl-stage .pl-lrc {
  height: auto; flex: 1; min-height: 0;
  padding: 8px 2px 18px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 26px, #000 calc(100% - 30px), transparent);
  mask: linear-gradient(180deg, transparent, #000 26px, #000 calc(100% - 30px), transparent);
}
.pl-stage .pl-lrc.is-empty { flex: none; display: grid; }
/* 歌词只有几句时整块垂直居中（上下 auto 边距），内容超过一屏后自动变回 0，
   滚动定位照旧 —— 直接用 justify-content:center 会把第一句顶出可滚动区。 */
.pl-stage .pl-lrc { display: flex; flex-direction: column; }
.pl-stage .pl-lrc-line:first-child { margin-top: auto; }
.pl-stage .pl-lrc-line:last-child { margin-bottom: auto; }
.pl-stage .pl-lrc-line { padding: 8px 10px; font-size: 12.5px; line-height: 1.5; opacity: .5; flex: none; }
.pl-stage .pl-lrc-line.on { font-size: 15px; opacity: 1; }
.pl-stage .pl-full.zen .pl-lrc-line { font-size: 13.5px; }
.pl-stage .pl-full.zen .pl-lrc-line.on { font-size: 17px; }
.pl-stage .pl-lyric-top { padding: 0 2px 8px; }

/* ---------- 进度 / 控制 ---------- */
.pf-bottom { flex: none; width: 100%; padding-top: 4px; }
.pl-stage .pl-prog { margin-top: 0; }
.pl-stage .pl-range {
  height: 3.5px;
  background: linear-gradient(90deg, var(--brand) 0 var(--p, 0%), rgba(120, 130, 160, .24) var(--p, 0%) 100%);
}
.pl-stage .pl-range::-webkit-slider-thumb { width: 14px; height: 14px; }
.pl-stage .pl-times { margin-top: 5px; font-size: 10px; }

.pl-stage .pl-ctrl { gap: 30px; margin: 10px 0 6px; justify-content: center; }
.pl-stage .pl-c-btn.side {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, .56); color: var(--t1);
  box-shadow: 0 1px 3px rgba(26, 38, 86, .08);
}
.pl-stage .pl-c-btn.side svg { width: 18px; height: 18px; }
.pl-stage .pl-c-btn.main { width: 58px; height: 58px; }

.pf-tools { display: flex; gap: 8px; margin-top: 2px; }
.pf-tool {
  flex: 1; height: 40px; border: 0; border-radius: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, .46); color: var(--t2);
  font-family: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .66);
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--spring);
}
.pf-tool:active { transform: scale(.97); }
.pf-tool svg { width: 14px; height: 14px; opacity: .9; }
.pf-tool b { font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.pf-tool em { font-style: normal; font-size: 10px; color: var(--t3); }

/* 矮屏（老机型 / 分屏）：封面再收一点，保证歌词和控制都在一屏里 */
@media (max-height: 730px) {
  .pl-stage .pl-cover { width: clamp(118px, 30vh, 190px); height: clamp(118px, 30vh, 190px); }
  .pl-viz { width: clamp(118px, 30vh, 190px); height: clamp(118px, 30vh, 190px); }
  .pl-stage .pl-ctrl { margin: 6px 0 4px; }
  .pl-stage .pl-c-btn.main { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-stage, .pl-stage .pl-cover { transition: none; }
  .pl-stage .pl-cover.playing::after { animation: none; }
}
.pl-tip { font-size: 11px; color: var(--t3); line-height: 1.6; margin: 2px 2px 10px; }
.pl-lrc-input {
  width: 100%; min-height: 150px; resize: vertical; font-family: ui-monospace, Menlo, monospace;
  font-size: 12px; line-height: 1.7; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(120,130,160,.2); background: rgba(255,255,255,.94); outline: none;
}
.pl-pick { display: flex; flex-direction: column; gap: 6px; }
.pl-pick-row {
  display: flex; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: 12px;
  background: rgba(120,130,160,.07); font-family: inherit; font-size: 12.5px; color: var(--t1);
  cursor: pointer; text-align: left;
}
.pl-pick-row svg { width: 16px; height: 16px; color: var(--t2); }
.pl-queue { display: flex; flex-direction: column; gap: 5px; }
.pl-q-hint { margin: 0 2px 8px; font-size: 10.5px; color: var(--t3); }
.pl-q-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px;
  background: rgba(120,130,160,.06); cursor: pointer;
}
.pl-q-row.on {
  background: rgba(47,107,255,.09);
  box-shadow: inset 0 0 0 1px rgba(47,107,255,.20);
}
.pl-q-cover {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(140deg,#7A63FF,#2F6BFF);
  background-size: cover; background-position: center;
  display: grid; place-items: center; color: #fff; font-size: 14px;
}
.pl-q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-q-main b {
  font-size: 12px; color: var(--t1); font-weight: 620;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-q-main span { font-size: 9.5px; color: var(--t3); }
.pl-q-on { display: flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.pl-q-on i {
  width: 2.5px; border-radius: 2px; background: #2F6BFF;
  animation: plQEq .9s ease-in-out infinite;
}
.pl-q-on i:nth-child(1) { height: 6px; animation-delay: 0s; }
.pl-q-on i:nth-child(2) { height: 13px; animation-delay: .18s; }
.pl-q-on i:nth-child(3) { height: 9px; animation-delay: .34s; }
@keyframes plQEq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.pl-tip-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 18px; text-align: center;
}
.pl-tip-empty svg { width: 34px; height: 34px; color: var(--t3); opacity: .6; }
.pl-tip-empty b { font-size: 13px; color: var(--t1); }
.pl-tip-empty span { font-size: 11px; color: var(--t3); line-height: 1.6; max-width: 240px; }

/* =====================================================================
   布局修复：工具页页头按钮不再挤压标题
   ===================================================================== */
.hdr-row.has-action { position: relative; }
.hdr-row.has-action .hdr-title {
  position: absolute; left: 0; right: 0; text-align: center;
  pointer-events: none; z-index: 0;
}
.hdr-row.has-action .hdr-slot { visibility: hidden; }
.hdr-row.has-action .text-btn {
  position: relative; z-index: 1; margin-left: auto;
}
@media (max-width: 340px) {
  .hdr-row.has-action .text-btn { padding: 0 8px; font-size: 12px; }
}

/* =====================================================================
   网格视图：左滑动作按钮居中盖在文件上（原来用右侧滑出，卡片窄时会压住图标）
   ===================================================================== */
.swipe-wrap[data-view="grid"] .swipe-act {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%) scale(.86);
}
.swipe-wrap[data-view="grid"].dragging .swipe-act {
  transform: translate(-50%, -50%) scale(.9);
}
.swipe-wrap[data-view="grid"].swiping .swipe-act {
  transform: translate(-50%, -50%) scale(1);
}
.swipe-wrap[data-view="grid"] .swipe-act:active {
  transform: translate(-50%, -50%) scale(.94);
}

/* =====================================================================
   关于弹层（重设计）
   ===================================================================== */
.ab { padding: 2px 0 6px; }
.ab-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 18px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(47,107,255,.16), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(255,255,255,.82));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(30,40,80,.08), inset 0 1px 0 #fff;
}
.ab-logo {
  flex: none; width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px rgba(47,107,255,.30);
}
.ab-logo svg { width: 22px; height: 22px; }
.ab-id { flex: 1; min-width: 0; }
.ab-id b { display: block; font-size: 16.5px; font-weight: 780; color: var(--t1); letter-spacing: -.01em; }
.ab-id span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--t3); }
.ab-badge {
  flex: none; font-size: 9.5px; font-weight: 700; color: #1B8A72;
  background: rgba(37,183,155,.13); padding: 3px 8px; border-radius: 999px;
}

.ab-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px;
}
.ab-cell {
  padding: 9px 11px; border-radius: 13px; background: rgba(120,130,160,.07);
  display: flex; flex-direction: column; gap: 2px;
}
.ab-cell span { font-size: 9.5px; color: var(--t3); }
.ab-cell b { font-size: 12px; color: var(--t1); font-weight: 650; }
.ab-desc {
  margin: 12px 2px 8px; font-size: 11px; line-height: 1.65; color: var(--t3);
}
.ab-quota { margin: 2px 0 10px; }
.ab-q-top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 10px; color: var(--t3); margin-bottom: 5px;
}
.ab-q-top b { font-size: 10.5px; color: var(--t2); font-variant-numeric: tabular-nums; }
.ab-q-bar { height: 4px; border-radius: 2px; background: rgba(120,130,160,.16); overflow: hidden; }
.ab-q-bar i { display: block; height: 100%; border-radius: 2px; background: var(--brand-grad); }

.ab-acts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.ab-act {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 42px; border: 0; border-radius: 13px; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 650; color: var(--t2); background: rgba(120,130,160,.10);
  min-width: 0; padding: 0 4px;
}
.ab-act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-act svg { width: 15px; height: 15px; }
.ab-act:active { transform: scale(.97); }
.ab-clear {
  width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; border: 0; border-radius: 13px; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 650; color: #D9342B; background: rgba(217,52,43,.08);
}
.ab-clear svg { width: 15px; height: 15px; }
.ab-clear:active { transform: scale(.98); background: rgba(217,52,43,.14); }
.ab-note { margin: 8px 2px 0; font-size: 9.5px; line-height: 1.6; color: var(--t3); }
.ab-note b { color: var(--t2); }

/* =====================================================================
   小组件：放大 + 新增组件面板
   ===================================================================== */
/* 顶栏胶囊放大一点（原来 32px 偏小，和右侧搜索按钮不协调） */
.wg-pill {
  height: 36px; padding: 0 12px 0 10px; gap: 5px;
}
.wg-pill b { font-size: 13.5px; }
.wg-pill em { font-size: 10px; max-width: 56px; }
.wg-pill .wg-chip-ico svg { width: 16px; height: 16px; }

/* 组件切换：14 个组件用 5 列网格全部摊开（3 行），不藏起来。
   之前横向滑动一屏只露 5 个，用户会以为「组件就这几个」。 */
.wg-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 2px 2px 10px;
}
.wg-tab {
  width: auto; min-width: 0;
  padding: 8px 2px 7px; border-radius: 14px;
  animation-delay: calc(var(--i, 0) * 16ms);
}
.wg-tab i { width: 30px; height: 30px; border-radius: 10px; }
.wg-tab i svg { width: 15px; height: 15px; }
.wg-tab span { font-size: 9.5px; max-width: 100%; }
.wg-tab i { width: 34px; height: 34px; border-radius: 11px; }
.wg-tab i svg { width: 17px; height: 17px; }
.wg-tab span { font-size: 10.5px; max-width: 68px; }

/* 原声播放器面板 */
.wg-pl {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(47,107,255,.10), rgba(122,99,255,.10));
  border: 1px solid rgba(255,255,255,.9);
}
.wg-pl-cover {
  flex: none; width: 58px; height: 58px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(140deg,#7A63FF,#2F6BFF); background-size: cover; background-position: center;
  display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 22px;
  box-shadow: 0 6px 16px rgba(47,107,255,.24);
}
.wg-pl-main { flex: 1; min-width: 0; }
.wg-pl-main b {
  display: block; font-size: 13px; color: var(--t1); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-pl-main span {
  display: block; font-size: 10px; color: var(--t3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-pl-bar { height: 3px; border-radius: 2px; background: rgba(120,130,160,.18); margin-top: 7px; overflow: hidden; }
.wg-pl-bar i { display: block; height: 100%; background: var(--brand-grad); border-radius: 2px; transition: width .3s linear; }
.wg-pl-main em { display: block; margin-top: 3px; font-style: normal; font-size: 9.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.wg-pl-ctrl { flex: none; display: flex; align-items: center; gap: 5px; }
.wg-pl-btn {
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.86); color: var(--t1); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(18,24,48,.10);
}
.wg-pl-btn svg { width: 13px; height: 13px; }
.wg-pl-btn.main { width: 34px; height: 34px; background: var(--brand-grad); color: #fff; }
.wg-pl-btn.main svg { width: 16px; height: 16px; }

.wg-inbox-tip {
  font-size: 10.5px; color: var(--t3); line-height: 1.5;
  padding: 8px 10px; margin-bottom: 8px; border-radius: 11px;
  background: rgba(122,99,255,.08);
}

/* 专注计时 */
.wg-focus { display: flex; flex-direction: column; align-items: center; padding: 4px 0 2px; }
.wg-focus-ring {
  width: 132px; height: 132px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 50% 35%, rgba(255,107,107,.14), rgba(255,255,255,.9));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 6px rgba(255,107,107,.10), 0 8px 22px rgba(255,107,107,.12);
}
.wg-focus-ring b {
  font-size: 30px; font-weight: 300; color: var(--t1);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.wg-focus-ring span { font-size: 10.5px; color: var(--t3); }
.wg-focus-acts { display: flex; gap: 8px; margin-top: 14px; width: 100%; }
.wg-fbtn {
  flex: 1; height: 40px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 650; color: var(--t2); background: rgba(120,130,160,.10);
}
.wg-fbtn.main { color: #fff; background: linear-gradient(140deg,#FF8A7A,#F0524A); box-shadow: 0 6px 16px rgba(240,82,74,.26); }
.wg-fbtn:active { transform: scale(.97); }

/* 语音速记 */
.wg-voice { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; gap: 6px; }
.wg-vmic {
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg,#FF7A8A,#E8455F);
  box-shadow: 0 10px 26px rgba(232,69,95,.30);
  transition: transform .18s var(--spring);
}
.wg-vmic svg { width: 30px; height: 30px; }
.wg-vmic:active { transform: scale(.94); }
.wg-vmic.rec { animation: vwPulse 1.4s ease-out infinite; }
.wg-voice b { font-size: 13px; color: var(--t1); }
.wg-voice span { font-size: 10.5px; color: var(--t3); }

/* 月历 */
.wg-cal-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.wg-cal-h b { font-size: 13px; color: var(--t1); font-weight: 700; }
.wg-cal-h span { font-size: 10px; color: var(--t3); }
.wg-cal-wk {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 9.5px; color: var(--t3); text-align: center; margin-bottom: 4px;
}
.wg-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wg-cal-d {
  aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 9px;
  font-size: 11px; color: var(--t1); cursor: pointer; position: relative;
  font-variant-numeric: tabular-nums;
}
.wg-cal-d.mute { cursor: default; }
.wg-cal-d.today { background: var(--brand); color: #fff; font-weight: 700; }
.wg-cal-d.mark::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; margin-left: -2px;
  width: 4px; height: 4px; border-radius: 50%; background: #E8763C;
}
.wg-cal-d.today.mark::after { background: #fff; }

/* 同步状态 */
.wg-sync-h { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.wg-sync-h b { font-size: 13px; color: var(--t1); font-weight: 700; }
.wg-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #B6BBC8; }
.wg-sync-dot.on { background: #25B79B; box-shadow: 0 0 0 4px rgba(37,183,155,.14); }

/* 文件卡片上的来源平台徽标 */
.badge.plat {
  font-size: 8.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px;
  line-height: 1.4; white-space: nowrap;
}

/* 横向滚动的分类/组件条：右侧渐隐，提示「还能滑」 */
.tk-chips {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
}

/* =====================================================================
   首页顶栏重排 + 小组件胶囊（v1.2.1）
   问题：胶囊被品牌名挤在中间，36px 高、只剩「云端 已同步」两行小字；
   现在让胶囊占据整行剩余宽度（最小 112px），高度 46px，图标独立成块。
   ===================================================================== */
.hd2 .row { align-items: center; gap: 9px; }
.hd2 .brand {
  flex: 0 1 auto; min-width: 0; max-width: 45%; gap: 8px;
}
.hd2 .brand-logo { width: 36px; height: 36px; border-radius: 12px; }
.hd2 .brand-logo svg { width: 19px; height: 19px; }
.hd2 .brand-text b { font-size: 15px; letter-spacing: .2px; }
.hd2 .brand-text i { font-size: 9.5px; margin-top: 3px; line-height: 1.35; }
.hd2 .icon-btn { width: 38px; height: 38px; border-radius: 13px; }

.dash-wx {
  flex: 1 1 auto; min-width: 112px; margin-right: 0;
  display: block; -webkit-tap-highlight-color: transparent;
}

/* 胶囊本体：图标块 + 两行文字 + 尾部箭头 */
.wg-pill {
  display: flex; align-items: center; gap: 9px;
  width: 100%; height: 46px; padding: 0 9px;
  border-radius: 15px; overflow: hidden;
  background: rgba(255, 255, 255, .80);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .94), 0 4px 14px rgba(18, 24, 48, .08);
  transition: transform .16s var(--spring), box-shadow .24s var(--ease, ease), background .2s;
}
.wg-pill .wg-chip-ico {
  position: relative; flex: none;
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--wc, #2F6BFF);
  background: color-mix(in srgb, var(--wc, #2F6BFF) 14%, #fff);
  transition: transform .2s var(--spring), background .2s;
}
.wg-pill .wg-chip-ico svg { width: 16px; height: 16px; }
.wg-pill .wg-chip-txt {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
}
.wg-pill .wg-chip-val {
  font-size: 15px; font-weight: 760; color: var(--t1);
  line-height: 1.15; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-pill .wg-chip-sub {
  font-size: 9.5px; color: var(--t3); line-height: 1.3; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-pill .wg-chip-tail {
  flex: none; display: grid; place-items: center;
  color: var(--t3); opacity: .42;
}
.wg-pill .wg-chip-tail svg { width: 11px; height: 11px; }
.dash-wx:active .wg-pill { transform: scale(.97); }
.wg-pill.is-dim { opacity: .82; }
.wg-pill.is-dim .wg-chip-val { color: var(--t2); font-weight: 680; }

/* 有「待处理」数据时：小圆点脉冲 + 整颗胶囊极缓呼吸 */
.wg-pill.is-live .wg-chip-ico::after {
  content: ''; position: absolute; right: -1px; top: -1px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wc, #2F6BFF);
  box-shadow: 0 0 0 2px #fff;
  animation: wgDot 1.9s ease-in-out infinite;
}
@keyframes wgDot {
  0%, 100% { transform: scale(.85); opacity: .75; }
  50% { transform: scale(1.12); opacity: 1; }
}
.wg-pill.is-live { animation: wgBreathe 3.4s ease-in-out infinite; }
@keyframes wgBreathe {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .94), 0 4px 14px rgba(18, 24, 48, .08); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .94), 0 6px 20px color-mix(in srgb, var(--wc, #2F6BFF) 26%, transparent); }
}

/* 切换组件 / 首次渲染的入场 */
.wg-pill.is-in { animation: wgChipIn .44s cubic-bezier(.2, 1.12, .35, 1) both; }
@keyframes wgChipIn {
  from { opacity: 0; transform: translateY(9px) scale(.95); }
  to { opacity: 1; transform: none; }
}

/* =====================================================================
   首页小组件区（v1.3.0）—— 一宽一窄，两张都在动
     · 原声（左 / 宽）：唱盘旋转 + 四根音波 + 实时进度
     · 天气（右 / 窄）：天气图形微动效 + 大温度 + 4 小时曲线描边
   高度 142px，比原来的四宫格省一半纵向空间，信息反而更集中。
   ===================================================================== */
.wg-board {
  display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 10px;
  margin: 0 0 12px;
}
.wg-board-h {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  margin: 0 2px -1px;
}
.wg-board-h > span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--t3); text-transform: uppercase;
}
.wg-board-edit {
  display: inline-flex; align-items: center; gap: 3px;
  height: 24px; padding: 0 8px; border: 0; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 10.5px; color: var(--t2);
  background: rgba(120, 130, 160, .10);
  -webkit-tap-highlight-color: transparent;
}
.wg-board-edit svg { width: 12px; height: 12px; }
.wg-board-edit:active { transform: scale(.95); }

/* 卡片本体 */
.wg-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 158px; padding: 12px 13px 13px;
  border: 0; border-radius: 22px; text-align: left; cursor: pointer; overflow: hidden;
  color: #fff; font-family: inherit;
  background: linear-gradient(148deg, var(--g1, #7C86FF), var(--g2, #3B4FE0));
  box-shadow: 0 10px 24px rgba(30, 46, 120, .22), inset 0 1px 0 rgba(255, 255, 255, .26);
  transition: transform .18s var(--spring), box-shadow .22s var(--ease, ease);
  -webkit-tap-highlight-color: transparent;
  animation: wgTileIn .42s cubic-bezier(.2, 1.12, .35, 1) both;
}

/* 原声卡要接横向手势：纵向仍归页面滚动，横向由 JS 接管，
   这样左滑切歌不会先把整页拖走，也不会误触浏览器的侧滑返回 */
.wg-play {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  will-change: transform, opacity;
}
/* 左上角一层柔光，让纯色不再死板 */
.wg-tile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 82% at 12% -6%, rgba(255, 255, 255, .26), transparent 62%);
}
.wg-tile:active { transform: scale(.968); }
@keyframes wgTileIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- 原声卡 ---------- */
.wg-play-top {
  position: relative; display: flex; align-items: center; gap: 7px;
  width: 100%; margin-bottom: 9px; min-height: 30px;
}
.wg-play-state { font-size: 9.5px; color: rgba(255, 255, 255, .82); letter-spacing: .01em; }
.wg-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.wg-eq i {
  width: 2.5px; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .92);
  transform-origin: bottom;
  animation: wgEq 1.1s ease-in-out infinite;
}
.wg-eq i:nth-child(1) { height: 5px; animation-delay: 0s; }
.wg-eq i:nth-child(2) { height: 11px; animation-delay: .16s; }
.wg-eq i:nth-child(3) { height: 7px; animation-delay: .3s; }
.wg-eq i:nth-child(4) { height: 9px; animation-delay: .44s; }
@keyframes wgEq { 0%, 100% { transform: scaleY(.42); opacity: .65; } 50% { transform: scaleY(1); opacity: 1; } }
/* 没在播：音波定住、整体变暗，一眼能看出「停了」 */
.wg-play:not(.is-playing) .wg-eq i { animation: none; transform: scaleY(.4); opacity: .55; }
.wg-play.is-empty .wg-eq i { animation: none; transform: scaleY(.3); opacity: .45; }

.wg-play-btn {
  margin-left: auto; flex: none;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .22); color: #fff;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .14s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.wg-play-btn svg { width: 13px; height: 13px; }
.wg-play-btn:active { transform: scale(.9); background: rgba(255, 255, 255, .34); }

.wg-play-title {
  position: relative;
  font-size: 14px; font-weight: 750; line-height: 1.32; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 100%; text-shadow: 0 1px 6px rgba(20, 30, 90, .12);
}
.wg-play-lrc {
  position: relative; display: block; width: 100%; margin-top: 4px;
  font-style: normal; font-size: 10px; line-height: 1.4;
  color: rgba(255,255,255,.72); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(20,30,90,.14);
  transition: opacity .3s;
}
.wg-play-lrc[hidden] { display: none; }
.wg-play-foot {
  position: relative; display: flex; align-items: center; gap: 7px;
  width: 100%; margin-top: auto; padding-top: 8px;
}
.wg-play-cvw {
  position: relative; flex: none;
  display: inline-grid; place-items: center;
}
.wg-play-cover {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 11px; color: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  animation: wgSpin 9s linear infinite;
  animation-play-state: paused;
}
.wg-play.is-playing .wg-play-cover { animation-play-state: running; }
@keyframes wgSpin { to { transform: rotate(360deg); } }
/* 封面右下角的小按钮：收成悬浮唱片 */
.wg-play-mini {
  position: absolute; right: -6px; bottom: -5px;
  width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .96); color: #4B5A86;
  box-shadow: 0 1px 6px rgba(16, 24, 60, .38);
}
.wg-play-mini svg { width: 9px; height: 9px; display: block; }
/* 手指小、按钮更小：向外借 7px 的不可见热区 */
.wg-play-mini::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.wg-play-mini:active { transform: scale(.9); }
.wg-play-foot em {
  font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, .8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  font-variant-numeric: tabular-nums;
}
.wg-play-idx { margin-left: auto; font-size: 9px; color: rgba(255, 255, 255, .58); flex: none; }

.wg-t-bar {
  position: relative; display: block; width: 100%; height: 3px; margin-top: 8px;
  border-radius: 3px; background: rgba(255, 255, 255, .24); overflow: hidden;
}
.wg-t-bar b {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .65);
  transition: width .28s linear;
}

/* ---------- 天气卡：一块会动的天空 ----------
   整卡就是场景：底色按天气 + 昼夜切换，云在飘、雨在落、雪在飘、闪电偶尔亮。
   全是 CSS 动画，不占主线程，也不影响播放器。 */
.wg-wx {
  position: relative; overflow: hidden;
  padding: 11px 12px 11px;
  background: linear-gradient(168deg, var(--g1), var(--g2));
  --g1: #FFC46B; --g2: #E2622F;
}
.wg-wx.wxk-sun { --g1: #FFC96D; --g2: #E2622F; }
.wg-wx.wxk-sun.wxk-night { --g1: #3E4E7E; --g2: #141B34; }
.wg-wx.wxk-partly { --g1: #FFC078; --g2: #D9784A; }
.wg-wx.wxk-partly.wxk-night { --g1: #414F7E; --g2: #1A2342; }
.wg-wx.wxk-cloud { --g1: #8FA6C1; --g2: #4C6383; }
.wg-wx.wxk-cloud.wxk-night { --g1: #3A4767; --g2: #1C2440; }
.wg-wx.wxk-rain { --g1: #7E9BB8; --g2: #223A56; }
.wg-wx.wxk-rain.wxk-night { --g1: #2C3D59; --g2: #0C1727; }
.wg-wx.wxk-snow { --g1: #A6C4DD; --g2: #6B8CAB; }
.wg-wx.wxk-snow.wxk-night { --g1: #3C4C68; --g2: #182238; }
.wg-wx.wxk-storm { --g1: #5E6288; --g2: #2A2846; }
.wg-wx.wxk-fog { --g1: #AEB8C4; --g2: #717C8A; }
.wg-wx.wxk-fog.wxk-night { --g1: #39445A; --g2: #1A2030; }

.wx-scene { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* 太阳 / 月牙 */
.wx-orb {
  position: absolute; right: 12px; top: 32px;
  width: 26px; height: 26px; border-radius: 50%; background: #FFF7DC;
  box-shadow: 0 0 16px 4px rgba(255,236,168,.55), 0 0 44px 14px rgba(255,208,118,.22);
  animation: wxOrb 5.4s ease-in-out infinite;
}
.wx-orb::before {
  content: ''; position: absolute; inset: -13px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,.5) 0 4deg, transparent 4deg 30deg);
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 60%);
  mask: radial-gradient(closest-side, transparent 58%, #000 60%);
  animation: wxSpin 24s linear infinite;
}
@keyframes wxOrb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes wxSpin { to { transform: rotate(360deg); } }
.wg-wx.wxk-night .wx-orb {
  background: transparent; box-shadow: inset -7px -3px 0 0 #FFF3D0;
  filter: drop-shadow(0 0 10px rgba(255,240,200,.35));
  animation: none;
}
.wg-wx.wxk-night .wx-orb::before { display: none; }

/* 云 */
.wx-cloud {
  position: absolute; border-radius: 50px; background: rgba(255,255,255,.92);
  animation: wxDrift 13s ease-in-out infinite;
}
.wx-cloud.c1 { width: 42px; height: 12px; right: 46px; top: 32px; }
.wx-cloud.c1::before, .wx-cloud.c1::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.wx-cloud.c1::before { width: 18px; height: 18px; left: 7px; top: -10px; }
.wx-cloud.c1::after { width: 11px; height: 11px; right: 7px; top: -5px; }
@keyframes wxDrift { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }

/* 闪电 */
.wx-bolt {
  position: absolute; right: 40px; top: 54px; width: 11px; height: 19px;
  opacity: .18;
  background: #FFE86B;
  clip-path: polygon(48% 0, 100% 0, 62% 42%, 96% 42%, 30% 100%, 46% 52%, 12% 52%);
  filter: drop-shadow(0 0 7px rgba(255,232,107,.9));
  animation: wxBolt 3.6s steps(1) infinite;
}
@keyframes wxBolt {
  0%, 84%, 100% { opacity: .18; }
  86%, 90% { opacity: 1; }
  88% { opacity: .3; }
}
.wg-wx.wxk-storm .wx-scene::before {
  content: ''; position: absolute; inset: 0; background: #fff;
  opacity: 0; animation: wxFlash 3.6s steps(1) infinite;
}
@keyframes wxFlash { 0%, 84%, 100% { opacity: 0; } 86% { opacity: .16; } 88% { opacity: .04; } 90% { opacity: .12; } }

/* ---------- 雨 v1.9.5 ----------
   旧版是一张平铺 SVG：全卡等间距、等长、等亮的斜线，位移一个平铺周期后
   看不出在动，像一层脏玻璃划痕，还会糊住温度数字。
   现在改成 30 根独立雨丝，长短 / 粗细 / 速度 / 明暗 / 延迟全部错开 →
   近中远三层景深；雨层带蒙版，左上温度区几乎无雨，保证可读性；
   顶部冷光 + 底部水汽，把阴雨天的氛围撑起来。 */
.wg-wx.wxk-rain .wx-scene,
.wg-wx.wxk-storm .wx-scene {
  background:
    radial-gradient(125% 72% at 80% -14%, rgba(226,240,255,.17), transparent 62%),
    linear-gradient(180deg, transparent 50%, rgba(6,16,30,.30) 100%);
}

/* 雨层：左上（城市 / 温度 / 天气描述）用蒙版让雨淡出，右下保持清晰 */
.wx-rain {
  position: absolute; inset: -26px -12px 0 -12px; pointer-events: none;
  -webkit-mask-image: linear-gradient(102deg, transparent 0%, rgba(0,0,0,.16) 22%, rgba(0,0,0,.74) 44%, #000 64%);
  mask-image: linear-gradient(102deg, transparent 0%, rgba(0,0,0,.16) 22%, rgba(0,0,0,.74) 44%, #000 64%);
}
/* 细雨雾：很淡的一层点状底衬，让 70 根雨丝之间也有「雨幕」的密度，
   垂直位移整一个平铺高度，不会像旧版斜线那样出现接缝 */
.wx-rain::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(216,236,255,.45) .7px, transparent 1.4px);
  background-size: 9px 13px;
  opacity: .13;
  animation: wxHaze 1.05s linear infinite;
}
@keyframes wxHaze { to { background-position: 0 13px; } }
/* 底部水汽：雨落到地面泛起的一层薄雾 */
.wx-rain::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  background: linear-gradient(180deg, transparent, rgba(190,216,242,.14) 62%, transparent);
  animation: wxMist 5.2s ease-in-out infinite;
}
@keyframes wxMist {
  0%, 100% { opacity: .5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.wx-drop {
  position: absolute; top: 0; left: var(--x, 50%);
  width: var(--w, 1px); height: var(--l, 12px);
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(232,246,255,.95) 74%, rgba(255,255,255,.5));
  box-shadow: 0 0 5px rgba(198,228,255,.20);
  opacity: 0;
  transform: translate3d(0, -30px, 0) rotate(var(--r, 13deg));
  animation: wxDrop var(--s, 1.2s) linear var(--d, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes wxDrop {
  0%   { transform: translate3d(0, -30px, 0) rotate(var(--r, 13deg)); opacity: 0; }
  5%   { opacity: var(--o, .5); }
  92%  { opacity: var(--o, .5); }
  100% { transform: translate3d(-30px, 190px, 0) rotate(var(--r, 13deg)); opacity: 0; }
}

/* 雨天：压顶的灰蓝乌云，比晴天的白云厚、暗，带一层投影 */
.wg-wx.wxk-rain .wx-cloud.c1,
.wg-wx.wxk-storm .wx-cloud.c1 {
  width: 54px; height: 15px; right: 28px; top: 26px;
  background: linear-gradient(180deg, rgba(228,238,250,.9), rgba(146,172,199,.84));
  box-shadow: 0 7px 18px rgba(6,18,36,.30), inset 0 -3px 7px rgba(56,82,112,.22);
}
.wg-wx.wxk-rain .wx-cloud.c1::before,
.wg-wx.wxk-storm .wx-cloud.c1::before { width: 24px; height: 24px; left: 9px; top: -13px; }
.wg-wx.wxk-rain .wx-cloud.c1::after,
.wg-wx.wxk-storm .wx-cloud.c1::after { width: 15px; height: 15px; right: 9px; top: -7px; }

/* 雪：两层圆点，速度不同 */
.wg-wx.wxk-snow .wx-scene::after {
  content: ''; position: absolute; left: -20px; right: -20px; top: -60px; bottom: -40px;
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 1.2px, transparent 1.7px),
                    radial-gradient(circle, rgba(255,255,255,.6) 1px, transparent 1.4px);
  background-size: 19px 24px, 31px 41px;
  animation: wxSnow 7s linear infinite;
}
@keyframes wxSnow {
  from { transform: translateY(-50px) translateX(0); }
  50% { transform: translateY(20px) translateX(5px); }
  to { transform: translateY(110px) translateX(-4px); }
}

/* 雾：横向漂移的白色带 */
.wg-wx.wxk-fog .wx-scene::after {
  content: ''; position: absolute; left: -30%; right: -30%; top: 44%; height: 22px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: wxFog 9s ease-in-out infinite;
}
@keyframes wxFog { 0%, 100% { transform: translateX(-12%); } 50% { transform: translateX(12%); } }

/* 星星 */
.wx-star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px rgba(255,255,255,.8);
  animation: wxTwinkle 3.4s ease-in-out infinite;
}
.wx-star.s1 { left: 84px; top: 20px; }
.wx-star.s2 { left: 104px; top: 12px; animation-delay: .7s; }
.wx-star.s3 { left: 128px; top: 26px; animation-delay: 1.3s; }
.wx-star.s4 { left: 118px; top: 48px; animation-delay: 2s; }
.wx-star.s5 { left: 90px; top: 58px; animation-delay: 2.6s; }
@keyframes wxTwinkle { 0%, 100% { opacity: .22; } 50% { opacity: 1; } }

/* 文字层 */
.wx-head {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 6px;
}
.wx-city {
  font-size: 10px; font-weight: 650; color: rgba(255,255,255,.94); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(20,30,60,.2);
}
.wx-live {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-size: 8px; color: rgba(255,255,255,.72);
}
.wx-live i {
  width: 4px; height: 4px; border-radius: 50%; background: #7CF5B0;
  box-shadow: 0 0 6px rgba(124,245,176,.9);
  animation: wxLive 2.4s ease-in-out infinite;
}
@keyframes wxLive { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.wx-temp {
  position: relative; margin-top: 3px;
  font-size: 38px; font-weight: 250; line-height: 1; letter-spacing: -.05em;
  color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(18,28,60,.22);
}
.wx-temp i { font-style: normal; font-size: 15px; font-weight: 400; opacity: .82; letter-spacing: 0; }
.wx-desc {
  position: relative; margin-top: 3px; font-style: normal; font-size: 9.5px; line-height: 1.35;
  color: rgba(255,255,255,.88);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 6px rgba(18,28,60,.18);
}
.wx-hours {
  position: relative; display: flex; gap: 4px; width: 100%; margin-top: auto; padding-top: 7px;
}
.wx-h {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 3px 0 2px; border-radius: 8px; background: rgba(255,255,255,.14);
}
.wx-h i { font-style: normal; font-size: 7.5px; color: rgba(255,255,255,.72); white-space: nowrap; }
.wx-h b { font-size: 10px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.wg-wx.is-empty .wx-temp { margin-top: 10px; }

/* ---------- 编辑布局 ---------- */
.wg-edit-tip { margin: 2px 2px 12px; font-size: 11px; color: var(--t3); line-height: 1.6; }
.wg-edit-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 8px;
  border-bottom: 1px solid rgba(120, 130, 160, .09);
}
.wg-edit-row.on { background: rgba(47, 107, 255, .05); border-radius: 12px; }
.wg-edit-ico {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--wc, #2F6BFF), color-mix(in srgb, var(--wc, #2F6BFF) 68%, #000));
}
.wg-edit-ico svg { width: 16px; height: 16px; }
.wg-edit-row b { flex: 1; font-size: 13px; font-weight: 650; color: var(--t1); }
.wg-edit-pos { font-size: 10.5px; color: var(--t3); flex: none; }

/* 面板里的天气 */
.wg-wx-panel .wg-wx-main {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 4px 2px 10px;
}
.wg-wx-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #FFB65C, #E96B32);
}
.wg-wx-ico svg { width: 24px; height: 24px; }
.wg-wx-main b { font-size: 30px; font-weight: 300; letter-spacing: -.04em; color: var(--t1); }
.wg-wx-main b i { font-style: normal; font-size: 15px; opacity: .7; }
.wg-wx-main > div > span { display: block; font-size: 11.5px; color: var(--t3); margin-top: 1px; }

/* ---------- 天气面板 v1.9.6：图标严格居中的 hero + 三格数据 ---------- */
.wg-wx-panel { padding: 2px 0 0; }
.wg-wx-hero {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px;
  align-items: center; padding: 6px 2px 14px;
}
.wg-wx-panel .wg-wx-ico {
  width: 56px; height: 56px; border-radius: 18px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #FFC46B, #F08A3C 62%, #E96B32);
  box-shadow: 0 8px 20px rgba(233, 107, 50, .26);
}
.wg-wx-panel .wg-wx-ico svg { width: 30px; height: 30px; display: block; }
.wg-wx-temp { min-width: 0; }
.wg-wx-temp b {
  display: flex; align-items: flex-start;
  font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.04em;
  color: var(--t1); font-variant-numeric: tabular-nums;
}
.wg-wx-temp b i { font-style: normal; font-size: 17px; font-weight: 600; margin: 2px 0 0 2px; opacity: .5; }
.wg-wx-temp em {
  display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--t3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wg-wx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 2px 12px; }
.wg-wx-stats div {
  padding: 10px 8px 9px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--t1) 5%, transparent);
}
.wg-wx-stats i { display: block; font-style: normal; font-size: 10.5px; color: var(--t3); }
.wg-wx-stats b {
  display: block; margin-top: 3px; font-size: 15px; font-weight: 700;
  color: var(--t1); font-variant-numeric: tabular-nums;
}
.wg-wx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 4px; }
.wg-wx-foot span {
  min-width: 0; font-size: 10px; color: var(--t3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wg-wx-more {
  flex: none; padding: 4px 0; border: 0; background: transparent;
  color: var(--brand); font-size: 11.5px; font-weight: 650;
}
.wg-wx-more:active { opacity: .6; }

/* 窄屏：宽度够就并排，不够就收紧字号，别让标题被挤成一条线 */
@media (max-width: 360px) {
  .hd2 { padding-left: 14px; padding-right: 14px; }
  .hd2 .brand-text b { font-size: 15px; }
  .hd2 .brand-text i { display: none; }
  .hd2 .brand-logo { width: 32px; height: 32px; border-radius: 11px; }
  .wg-board { gap: 8px; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
  .wg-tile { min-height: 148px; border-radius: 19px; padding: 11px 12px 12px; }
  .wg-play-title { font-size: 13px; }
  .wg-wx-range { display: none; }
}
@media (max-width: 330px) {
  .wg-tile { min-height: 138px; }
  .wg-play-foot .wg-play-cover { display: none; }
}

/* 极窄屏（≤340）：天气卡只剩 110 多 px，温度和天空图标会叠在一起，
   把字号收小、把日/月/云整体往右上角贴 */
@media (max-width: 340px) {
  .wx-temp { font-size: 28px; }
  .wx-temp i { font-size: 12px; }
  .wx-live { display: none; }
  .wx-cloud.c1 { width: 32px; height: 9px; right: 8px; top: 22px; }
  .wx-orb { width: 20px; height: 20px; right: 10px; top: 38px; }
  .wx-star.s1 { left: 58%; top: 16px; }
  .wx-star.s2 { left: 71%; top: 10px; }
  .wx-star.s3 { left: 83%; top: 24px; }
  .wx-star.s4 { left: 77%; top: 46px; }
  .wx-star.s5 { left: 62%; top: 54px; }
  .wx-desc { font-size: 9px; }
}

/* =====================================================================
   小组件的「动」：切换条错峰入场、面板内容淡入、数据条增长
   ===================================================================== */
.wg-tab {
  animation: wgTabIn .34s cubic-bezier(.2, 1.1, .35, 1) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes wgTabIn {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
  to { opacity: 1; transform: none; }
}

.wg-body > * { animation: wgPaneIn .32s cubic-bezier(.2, 1.05, .3, 1) both; }
.wg-body > *:nth-child(2) { animation-delay: .04s; }
.wg-body > *:nth-child(3) { animation-delay: .08s; }
.wg-body > *:nth-child(4) { animation-delay: .12s; }
.wg-body > *:nth-child(5) { animation-delay: .16s; }
.wg-body > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes wgPaneIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 健康度条：从 0 长到目标宽度 */
.wg-health-bar i { transform-origin: left center; animation: wgGrow .76s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes wgGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 三格指标：数字轻微上浮 */
.wg-stat b { animation: wgPaneIn .4s cubic-bezier(.2, 1.05, .3, 1) both; }

/* 待办：打勾弹出 + 文案渐隐划线 */
.wg-check.on svg { animation: wgPop .3s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes wgPop {
  0% { transform: scale(.2) rotate(-16deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.wg-todo.done .wg-todo-t { animation: wgStrike .3s ease both; }
@keyframes wgStrike { from { opacity: .5; } to { opacity: 1; } }

/* 播放器封面：播放时像唱片一样缓慢旋转 */
.wg-pl-cover.is-spin { animation: wgSpin 8s linear infinite; }
@keyframes wgSpin { to { transform: rotate(360deg); } }
.wg-pl-cover.is-spin { border-radius: 50%; }

/* 专注环：conic-gradient 进度 + 内圈遮罩 */
.wg-focus-ring { position: relative; }
.wg-focus-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -90deg, #F0524A calc(var(--p, 0) * 360deg), rgba(255, 107, 107, .13) 0);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%);
  mask: radial-gradient(circle, transparent 55%, #000 57%);
  transition: background .4s linear;
  pointer-events: none;
}
.wg-focus-ring.is-run { box-shadow: inset 0 0 0 6px rgba(255, 107, 107, .06), 0 8px 24px rgba(255, 107, 107, .16); }

/* 待整理 / 最近文件：行进场
   （只在面板重绘时播放一次，滚动时不重复触发） */
.wg-inbox-tip { animation: wgPaneIn .3s ease both; }

@media (prefers-reduced-motion: reduce) {
  .wg-tab, .wg-body > *, .wg-pill, .wg-pill.is-in, .wg-pill.is-live,
  .wg-pl-cover.is-spin, .wg-health-bar i, .wg-stat b, .wg-check.on svg, .wg-todo.done .wg-todo-t {
    animation: none !important;
  }
}

/* 页头副标题收紧：给胶囊让出宽度 */
.hd2 .brand-text i {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 132px; font-size: 9px;
}
.hd-dot { margin: 0 3px; opacity: .45; }
.hd2 .hd-mode {
  padding: 0; background: transparent !important;
  color: var(--t3); font-weight: 600; text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 2px;
}
.hd2 .hd-mode.cloud { color: #1B8A72; }

/* 专注面板：去掉与 footer 重复的按钮后，提示文字居中留白 */
.wg-focus-tip {
  margin: 16px 6px 2px; font-size: 10.5px; color: var(--t3);
  text-align: center; line-height: 1.55;
}
/* 选中的组件卡：加内描边，浅色底也能看出「选的是它」 */
.wg-tab.on {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--wc, #5E5CE6) 38%, #fff),
              0 4px 12px color-mix(in srgb, var(--wc, #5E5CE6) 16%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .wg-tab.on { box-shadow: inset 0 0 0 1.5px rgba(120,130,160,.35); }
}

/* button 默认 text-align:center，会让胶囊里的两行字跑到中间、离图标很远 */
.dash-wx, .wg-pill { text-align: left; }
.wg-pill .wg-chip-txt { align-items: flex-start; }

/* 模式小标签：虚下划线像「拼写错误提示」，改成轻底色 */
.hd2 .hd-mode {
  padding: 1px 5px; border-radius: 5px;
  background: rgba(120, 130, 160, .10) !important;
  color: var(--t2); text-decoration: none;
}
.hd2 .hd-mode.cloud { background: rgba(37, 183, 155, .12) !important; color: #1B8A72; }

/* 搜索按钮与胶囊高度对齐，顶栏更整齐 */
.hd2 .icon-btn { width: 42px; height: 42px; border-radius: 14px; }
.hd2 .icon-btn svg { width: 20px; height: 20px; }

/* =====================================================================
   胶囊底部播放进度（原声组件）
   ===================================================================== */
.wg-pill { position: relative; }
.wg-chip-prog {
  position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--wc, #2F6BFF), color-mix(in srgb, var(--wc, #2F6BFF) 55%, #fff));
  transition: width .32s linear;
  pointer-events: none;
}
.wg-pill.is-dim .wg-chip-prog { opacity: 0; }

/* 面板播放器的实时波形：播放时跳动，暂停时静止 */
.wg-pl-wave {
  display: flex; align-items: flex-end; gap: 2.5px; height: 14px;
  margin-top: 5px; opacity: .35; transition: opacity .2s;
}
.wg-pl-wave s {
  display: block; width: 2.5px; height: 4px; border-radius: 2px;
  background: var(--wc, #2F6BFF);
  text-decoration: none;
}
.wg-pl-wave.on { opacity: .95; }
.wg-pl-wave.on s { animation: wgWave .9s ease-in-out infinite; }
.wg-pl-wave.on s:nth-child(1) { animation-delay: 0s; }
.wg-pl-wave.on s:nth-child(2) { animation-delay: .12s; }
.wg-pl-wave.on s:nth-child(3) { animation-delay: .24s; }
.wg-pl-wave.on s:nth-child(4) { animation-delay: .08s; }
.wg-pl-wave.on s:nth-child(5) { animation-delay: .18s; }
@keyframes wgWave {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-pl-wave.on s { animation: none; height: 8px; }
}

/* 解析失败详情：上游的 msg 往往是一大段（可能原因 1/2/3 + 操作入口），
   左对齐 + 限高滚动，链接做成可点的胶囊，别让用户在一坨文字里找地址 */
.px-err-msg {
  display: block;
  text-align: left;
  max-height: 34vh;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--t2);
  white-space: pre-wrap;
  word-break: break-word;
}
.px-err-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.px-err-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650;
  color: var(--accent); text-decoration: none;
  background: rgba(47, 107, 255, .1);
}
.px-err-link:active { transform: scale(.96); }
.px-err-tip { font-size: 11px; color: var(--t3); }
