/* ===========================================================
   悬浮小组件 + 顶部导航
   桌面：右上导航 + 右下悬浮 dock
   移动：底部 tabbar + 右下 dock（位于 tabbar 之上）
   =========================================================== */

/* ---------- 顶部导航（仅桌面） ---------- */
.topnav{
  position:sticky;top:0;z-index:70;
  display:none;
  border-bottom:1px solid rgba(230,223,210,.7);
  background:rgba(247,244,238,.78);
  -webkit-backdrop-filter:blur(18px) saturate(1.7);
  backdrop-filter:blur(18px) saturate(1.7);
}
.topnav-in{
  max-width:1080px;margin:0 auto;
  padding:0 24px;
  height:58px;
  display:flex;align-items:center;gap:26px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;color:var(--ink);flex:none;
}
.brand .bm{
  width:30px;height:30px;border-radius:9px;flex:none;
  background:linear-gradient(135deg,#e8bc5c,#b07612);
  display:grid;place-items:center;
  font-size:15px;color:#fff;
  box-shadow:0 3px 10px -3px rgba(176,118,18,.55);
}
.brand .bt{font-family:"Songti SC","SimSun",Georgia,serif;font-weight:700;font-size:16px;letter-spacing:.04em}
.brand .bs{font-size:11px;color:var(--ink-3);margin-left:2px;font-family:ui-monospace,Menlo,monospace}

.topnav .links{display:flex;align-items:center;gap:4px;margin-left:auto}
.topnav .links a{
  text-decoration:none;color:var(--ink-2);
  font-size:13.5px;font-weight:600;
  padding:7px 15px;border-radius:999px;
  transition:background .16s,color .16s;
}
.topnav .links a:hover{background:rgba(31,27,22,.055);color:var(--ink)}
.topnav .links a.on{background:var(--ink);color:#f8f3e8}

@media (min-width:768px){
  .topnav{display:block}
  .hero{padding-top:44px}
}

/* ---------- 悬浮 dock ---------- */
.dock{
  position:fixed;z-index:90;
  right:14px;
  bottom:calc(var(--nav-h) + var(--safe-b) + 14px);
  display:flex;flex-direction:column;align-items:flex-end;gap:10px;
  pointer-events:none;
}
.dock > *{pointer-events:auto}

.dock-fab{
  display:flex;flex-direction:column;gap:9px;
}
.fab{
  width:46px;height:46px;border-radius:50%;
  border:1px solid rgba(255,255,255,.75);
  background:rgba(255,255,255,.82);
  -webkit-backdrop-filter:blur(14px) saturate(1.6);
  backdrop-filter:blur(14px) saturate(1.6);
  box-shadow:0 6px 20px -8px rgba(31,27,22,.4), 0 1px 0 rgba(255,255,255,.9) inset;
  display:grid;place-items:center;
  cursor:pointer;padding:0;
  transition:transform .16s, box-shadow .16s, background .16s;
}
.fab svg{width:20px;height:20px;stroke:var(--ink-2);stroke-width:1.8;fill:none;
  stroke-linecap:round;stroke-linejoin:round;transition:stroke .16s}
.fab:hover{transform:translateY(-2px);box-shadow:0 10px 26px -8px rgba(31,27,22,.45)}
.fab.on{background:var(--ink);border-color:var(--ink)}
.fab.on svg{stroke:#f3ead8}
.fab .dot{
  position:absolute;top:9px;right:9px;width:7px;height:7px;border-radius:50%;
  background:#37a06a;border:1.5px solid #fff;display:none;
}
.fab.playing .dot{display:block}
.fab{position:relative}
.fab.playing svg{stroke:var(--jade)}

/* ---------- 面板 ---------- */
.panel{
  width:298px;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(22px) saturate(1.7);
  backdrop-filter:blur(22px) saturate(1.7);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:
    0 2px 4px rgba(31,27,22,.05),
    0 20px 46px -18px rgba(31,27,22,.42);
  overflow:hidden;
  transform-origin:bottom right;
  animation:pop .24s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop{
  from{opacity:0;transform:translateY(10px) scale(.94)}
  to{opacity:1;transform:none}
}
.panel[hidden]{display:none!important}

.p-head{
  display:flex;align-items:center;gap:8px;
  padding:13px 15px 9px;
}
.p-head h4{
  margin:0;font-size:12px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold);
}
.p-head .p-x{
  margin-left:auto;
  width:26px;height:26px;border-radius:50%;
  border:none;background:rgba(31,27,22,.06);
  color:var(--ink-3);font-size:15px;line-height:1;
  cursor:pointer;display:grid;place-items:center;
  transition:background .15s,color .15s;
}
.p-head .p-x:hover{background:rgba(31,27,22,.12);color:var(--ink)}

/* ---------- 唱片机 ---------- */
.deck{padding:0 15px 15px}
.vinyl-stage{
  position:relative;
  display:grid;place-items:center;
  padding:6px 0 12px;
  perspective:600px;
}
.vinyl{
  width:132px;height:132px;border-radius:50%;
  position:relative;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      #26221c 0 1.5px, #322c24 1.5px 3px, #1d1a15 3px 4.5px),
    #221e19;
  box-shadow:
    0 10px 26px -10px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.06) inset;
  animation:spin 3.6s linear infinite;
  animation-play-state:paused;
}
.vinyl.spinning{animation-play-state:running}
@keyframes spin{to{transform:rotate(360deg)}}
.vinyl::after{
  content:"";position:absolute;inset:14px;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,
    rgba(255,255,255,.055) 0 34%, rgba(255,255,255,0) 35%);
}
.vin-label{
  position:absolute;inset:0;margin:auto;
  width:56px;height:56px;border-radius:50%;
  background:linear-gradient(140deg,#e8bc5c,#b07612);
  display:grid;place-items:center;
  font-family:"Songti SC","SimSun",serif;
  font-size:19px;font-weight:700;color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
  letter-spacing:.02em;
}
.vin-label::after{
  content:"";position:absolute;width:6px;height:6px;border-radius:50%;
  background:rgba(255,255,255,.0);
}
.tonearm{
  position:absolute;top:2px;right:6px;
  width:40px;height:56px;pointer-events:none;
  transform-origin:10px 10px;
  transform:rotate(-24deg);
  transition:transform .35s cubic-bezier(.3,.8,.3,1);
}
.tonearm::before{
  content:"";position:absolute;left:6px;top:0;
  width:5px;height:44px;border-radius:3px;
  background:linear-gradient(180deg,#cbbfa6,#9a8f79);
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.tonearm::after{
  content:"";position:absolute;left:2px;top:-3px;
  width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#efe6d3,#a99c83);
}
.vinyl-stage.on .tonearm{transform:rotate(6deg)}

.track{text-align:center;margin-bottom:11px;min-height:38px}
.track b{
  display:block;font-size:14.5px;font-weight:700;line-height:1.35;
  color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.track span{
  display:block;font-size:11.5px;color:var(--ink-3);margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.ctrl{display:flex;align-items:center;gap:9px}
.play{
  width:42px;height:42px;border-radius:50%;flex:none;
  border:none;cursor:pointer;
  background:var(--ink);color:#f6edda;
  display:grid;place-items:center;
  transition:transform .14s, background .14s;
  box-shadow:0 6px 16px -6px rgba(31,27,22,.55);
}
.play:hover{transform:scale(1.05)}
.play:active{transform:scale(.96)}
.play svg{width:17px;height:17px;fill:currentColor;stroke:none}
.play.on{background:linear-gradient(140deg,#e0ad42,#a86d0a)}

.ch{
  flex:1;min-width:0;
  font:inherit;font-size:12.5px;font-weight:600;
  color:var(--ink-2);background:rgba(31,27,22,.05);
  border:1px solid rgba(31,27,22,.07);
  border-radius:10px;padding:9px 8px;
  cursor:pointer;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23877d6c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;
  padding-right:24px;
}
.vol{
  -webkit-appearance:none;appearance:none;
  width:100%;height:4px;border-radius:999px;
  background:rgba(31,27,22,.12);
  margin:12px 0 2px;
  cursor:pointer;
}
.vol::-webkit-slider-thumb{
  -webkit-appearance:none;width:14px;height:14px;border-radius:50%;
  background:var(--ink);border:2px solid #fff;
  box-shadow:0 1px 4px rgba(0,0,0,.3);
}
.vol::-moz-range-thumb{
  width:14px;height:14px;border-radius:50%;
  background:var(--ink);border:2px solid #fff;
}
.deck-foot{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:10px;padding-top:9px;
  border-top:1px solid rgba(31,27,22,.07);
  font-size:11px;color:var(--ink-3);
}
.deck-foot a{color:var(--gold);text-decoration:none;font-weight:600}

/* ---------- 天气面板 ---------- */
.wx-panel{padding:0 15px 15px}
.wx-tabs{display:flex;gap:5px;margin-bottom:11px}
.wx-tabs button{
  flex:1;font:inherit;font-size:12px;font-weight:600;
  color:var(--ink-3);background:rgba(31,27,22,.045);
  border:1px solid transparent;border-radius:9px;
  padding:7px 0;cursor:pointer;
  transition:all .15s;
}
.wx-tabs button.on{
  background:var(--ink);color:#f6edda;border-color:var(--ink);
}
.wx-hero{
  display:flex;align-items:center;gap:14px;
  padding:6px 4px 12px;
}
.wx-hero .em{font-size:44px;line-height:1}
.wx-hero .n{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:40px;font-weight:700;line-height:1;color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.wx-hero .n small{font-size:16px;color:var(--ink-3);font-weight:600}
.wx-hero .d{margin-left:auto;text-align:right;font-size:12px;color:var(--ink-3);line-height:1.55}
.wx-hero .d b{display:block;font-size:13.5px;color:var(--ink-2);font-weight:700}
.wx-rows{display:grid;gap:0;border-top:1px solid rgba(31,27,22,.07);padding-top:9px}
.wx-r{
  display:flex;align-items:center;gap:9px;
  font-size:12.5px;color:var(--ink-3);padding:5px 4px;
}
.wx-r .lbl{width:38px;font-weight:700;color:var(--ink-2)}
.wx-r .em{font-size:15px;width:20px;text-align:center}
.wx-r .tp{margin-left:auto;font-family:ui-monospace,Menlo,monospace;font-weight:600;color:var(--ink-2)}
.wx-loading,.wx-err{
  padding:26px 8px;text-align:center;font-size:12.5px;color:var(--ink-3);line-height:1.7;
}

/* ---------- 回到顶部 ---------- */
.fab.top{opacity:0;pointer-events:none;transform:translateY(6px)}
.fab.top.show{opacity:1;pointer-events:auto;transform:none}

/* ---------- 移动端适配 ---------- */
@media (max-width:767px){
  .dock{right:12px;bottom:calc(var(--nav-h) + var(--safe-b) + 12px)}
  .panel{
    width:min(330px,calc(100vw - 40px));
  }
  .vinyl{width:118px;height:118px}
  .vin-label{width:50px;height:50px;font-size:17px}
  .fab{width:44px;height:44px}
}

/* 大屏稍微放大 */
@media (min-width:1100px){
  .panel{width:316px}
}

/* ===========================================================
   APlayer 接入 & 玻璃化
   =========================================================== */
.panel-music{width:340px}
.ap-wrap{padding:0 12px 4px}
.p-cnt{
  font-size:11px;font-weight:600;color:var(--ink-3);
  background:rgba(31,27,22,.05);border-radius:999px;
  padding:2px 8px;margin-left:auto;margin-right:6px;
}
.ap-tip{
  margin:0;padding:8px 15px 13px;
  font-size:10.5px;color:var(--ink-3);line-height:1.55;text-align:center;
}
.ap-loading,.ap-err{
  padding:34px 8px;text-align:center;font-size:12.5px;color:var(--ink-3);
}

/* APlayer 玻璃化：容器透明，交给外层 .panel 做材质 */
#apBox{
  margin:0;
  background:transparent;
  box-shadow:none;
  border-radius:14px;
  font-family:inherit;
}
#apBox .aplayer-info{
  border-bottom:none;
  background:transparent;
  padding:8px 0 0;
}
#apBox .aplayer-pic{
  width:58px;height:58px;
  border-radius:14px;
  box-shadow:0 6px 16px -8px rgba(31,27,22,.5), inset 0 1px 0 rgba(255,255,255,.35);
}
#apBox .aplayer-info .aplayer-music{
  padding:0 0 0 64px;
  height:auto;
  min-height:58px;
}
#apBox .aplayer-info .aplayer-music .aplayer-title{
  font-size:14px;font-weight:700;color:var(--ink);letter-spacing:-.01em;
}
#apBox .aplayer-info .aplayer-music .aplayer-author{
  font-size:11.5px;color:var(--ink-3);margin-top:1px;
  max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#apBox .aplayer-info .aplayer-controller{
  padding:10px 2px 2px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-bar-wrap{
  margin:0 0 8px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar{
  background:rgba(31,27,22,.1);height:4px;border-radius:999px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded{
  background:rgba(31,27,22,.18);height:4px;border-radius:999px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played{
  height:4px;border-radius:999px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{
  width:12px;height:12px;top:-4px;margin-top:0;
  box-shadow:0 1px 4px rgba(0,0,0,.28);
}
#apBox .aplayer-info .aplayer-controller .aplayer-time{
  color:var(--ink-3);font-size:11px;font-family:ui-monospace,Menlo,monospace;
  display:flex;align-items:center;gap:2px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon{
  width:18px;height:18px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{
  fill:var(--ink-3);
}
#apBox .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path{
  fill:var(--ink);
}
#apBox .aplayer-info .aplayer-controller .aplayer-volume-wrap{
  margin-left:6px;
}
#apBox .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{
  background:rgba(31,27,22,.1);border-radius:999px;
}

/* 列表 */
#apBox .aplayer-list{
  height:auto;max-height:196px;
  transition:none;
  background:transparent;
  counter-reset:list;
}
#apBox .aplayer-list ol{
  border-top:1px solid rgba(31,27,22,.07);
  padding:4px 0 0;
}
#apBox .aplayer-list ol li{
  height:36px;line-height:36px;
  padding:0 8px;margin:0;
  border-top:none;
  border-radius:9px;
  font-size:12.5px;color:var(--ink-2);
  transition:background .15s;
}
#apBox .aplayer-list ol li:hover{background:rgba(31,27,22,.05)}
#apBox .aplayer-list ol li.aplayer-list-light{
  background:rgba(200,137,27,.12);
}
#apBox .aplayer-list ol li .aplayer-list-index{
  display:none;
}
#apBox .aplayer-list ol li .aplayer-list-title{
  max-width:200px;
  display:inline-block;vertical-align:middle;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#apBox .aplayer-list ol li .aplayer-list-author{
  float:right;
  max-width:96px;
  color:var(--ink-3);font-size:11px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#apBox .aplayer-list ol li .aplayer-list-cur{
  height:8px;margin-right:3px;top:14px;
}
#apBox::-webkit-scrollbar{width:4px}
#apBox .aplayer-list ol::-webkit-scrollbar{width:4px}
#apBox .aplayer-list ol::-webkit-scrollbar-thumb{
  background:rgba(31,27,22,.16);border-radius:9px;
}

/* 歌词按钮隐藏（无歌词数据） */
#apBox .aplayer-lrc,
#apBox .aplayer-lrc-contents{display:none!important}

@media (max-width:767px){
  .panel-music{max-width:calc(100vw - 24px)}
  #apBox .aplayer-list ol li .aplayer-list-title{max-width:150px}
  #apBox .aplayer-list ol li .aplayer-list-author{max-width:70px}
}

/* ---------- 面板限高：手机上不要占满整屏 ---------- */
.panel{
  max-height:min(74vh, 600px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.panel::-webkit-scrollbar{width:4px}
.panel::-webkit-scrollbar-thumb{background:rgba(31,27,22,.16);border-radius:9px}

/* ---------- APlayer：所有自带背景一律清掉，交给外层玻璃 ---------- */
#apBox,
#apBox-body,
#apBox-info,
#apBox-list,
#apBox-list ol{
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
#apBox{margin:0!important;overflow:visible!important}
#apBox .aplayer-list ol li.aplayer-list-light{
  background:rgba(200,137,27,.14)!important;
}
#apBox .aplayer-list ol li:hover{background:rgba(31,27,22,.05)!important}
#apBox .aplayer-notice{background:rgba(31,27,22,.86)!important;color:#f6edda!important}
#apBox .aplayer-miniswitcher{display:none!important}

/* 信息区排版：标题一行、作者一行，不再挤在封面右侧 */
#apBox .aplayer-info .aplayer-music{
  padding-left:66px!important;
  display:flex;flex-direction:column;justify-content:center;
  min-height:58px;height:auto!important;
}
#apBox .aplayer-info .aplayer-music .aplayer-title{
  font-size:13.5px!important;font-weight:700;line-height:1.4;
  max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#apBox .aplayer-info .aplayer-music .aplayer-author{
  font-size:11px!important;line-height:1.4;margin-top:2px;
  max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* 时间与图标一行，避免和标题抢宽度 */
#apBox .aplayer-info .aplayer-controller{
  display:flex;align-items:center;flex-wrap:nowrap;
  padding-top:8px!important;
}
#apBox .aplayer-info .aplayer-controller .aplayer-bar-wrap{
  flex:1 1 auto;margin-right:8px!important;
}
#apBox .aplayer-info .aplayer-controller .aplayer-time{
  flex:0 0 auto;
}

/* ---------- APlayer 布局修正：容器即 .aplayer，高度预算重排 ----------
   APlayer 原生 .aplayer-info 固定 90px 高、margin-left 90px，
   我们把标题改成两行后高度溢出，导致信息栏与列表重叠。 */
#apBox.aplayer .aplayer-info{
  margin-left:70px!important;
  height:auto!important;
  padding:2px 0 0!important;
  border:none!important;
}
#apBox.aplayer .aplayer-music{
  width:auto!important;
  height:auto!important;
  margin:0 0 5px!important;
  padding:0!important;
}
#apBox.aplayer .aplayer-pic{
  float:left!important;
  margin:0!important;
  width:58px!important;height:58px!important;
}
#apBox.aplayer .aplayer-list{
  margin-bottom:0!important;
  border:none!important;
  clear:both;
  padding-top:6px;
}
#apBox.aplayer .aplayer-list ol li{
  height:34px!important;line-height:34px!important;
}
#apBox.aplayer .aplayer-info .aplayer-controller{
  height:auto!important;
}
#apBox.aplayer .aplayer-info .aplayer-controller .aplayer-time{
  line-height:1!important;
}
/* 曲目序号保留为弱化的灰色小字 */
#apBox.aplayer .aplayer-list ol li .aplayer-list-index{
  display:inline-block!important;
  width:20px!important;
  margin-right:2px;
  color:var(--ink-3)!important;
  font-size:11px!important;
  font-family:ui-monospace,Menlo,monospace;
}
#apBox.aplayer .aplayer-list ol li .aplayer-list-title{
  max-width:186px!important;
}

/* 列表容器限高，避免压住底部说明 */
#apBox.aplayer .aplayer-list{overflow:hidden!important;max-height:198px!important}
#apBox.aplayer .aplayer-list ol{overflow-y:auto!important;max-height:198px!important}
#apBox.aplayer .aplayer-list ol::-webkit-scrollbar-thumb{background:rgba(31,27,22,.18)!important}

/* ---------- 工具页排版：桌面端压缩高度 ---------- */
@media (min-width:768px){
  /* 天气四列一排放完，不再 2x2 */
  .wx-grid{grid-template-columns:repeat(4,1fr)}
  .wx-card{padding:10px 12px}
  .wx-days{margin-top:7px}
  .wx-day{font-size:10.5px}
  .wx-di{font-size:13px}
  /* 打包清单双栏，避免右列大片留白 */
  .pk-body{columns:2;column-gap:20px}
  .pk-group{break-inside:avoid;-webkit-column-break-inside:avoid}
  .pk-items{grid-template-columns:1fr}
  /* 倒计时数字更醒目 */
  .cd-nums span{max-width:110px;padding:12px 6px 9px}
  .cd-nums b{font-size:32px}
  .cd-nums i{font-size:11px}
}
.cd-nums b{letter-spacing:-.02em}

/* 曲目作者列留足空间，避免被截成「鸣潮先约电…」 */
#apBox.aplayer .aplayer-list ol li .aplayer-list-title{max-width:150px!important}
#apBox.aplayer .aplayer-list ol li .aplayer-list-author{max-width:118px!important;font-size:11px!important}
</
.wx-src{
  margin:9px 0 0;text-align:center;
  font-size:10.5px;color:var(--ink-3);opacity:.85;
}

/* ===========================================================
   费用记账
   =========================================================== */
.bg-hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:14px;
  flex-wrap:wrap;
  padding:4px 2px 14px;
}
.bg-total span{
  display:block;font-size:11.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-3);margin-bottom:2px;
}
.bg-total b{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:34px;font-weight:700;line-height:1;color:var(--ink);
  letter-spacing:-.03em;font-variant-numeric:tabular-nums;
}
.bg-name{display:flex;gap:16px}
.bg-name div{font-size:11.5px;color:var(--ink-3);text-align:right;line-height:1.5}
.bg-name em{
  display:block;font-style:normal;font-size:14px;font-weight:700;color:var(--ink-2);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}

.bg-bar{
  display:flex;height:8px;border-radius:999px;overflow:hidden;
  background:rgba(31,27,22,.07);margin-bottom:10px;
}
.bg-bar span{display:block;height:100%;transition:width .35s cubic-bezier(.32,1.24,.36,1)}

.bg-legend{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.bg-k{
  display:inline-flex;align-items:center;gap:6px;
  font:inherit;font-size:11.5px;font-weight:600;color:var(--ink-2);
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  border-radius:999px;padding:4px 10px;cursor:default;
}
.bg-k i{width:7px;height:7px;border-radius:50%;flex:none}
.bg-k b{font-family:ui-monospace,Menlo,monospace;font-weight:700;color:var(--ink)}

.bg-list{list-style:none;margin:0 0 14px;padding:0}
.bg-item{
  display:flex;align-items:center;gap:10px;
  padding:11px 4px;
  border-bottom:1px solid rgba(30,38,54,.07);
}
.bg-item:last-child{border-bottom:none}
.bg-dot{width:8px;height:8px;border-radius:50%;flex:none}
.bg-txt{flex:1;min-width:0}
.bg-txt b{
  display:block;font-size:13.8px;font-weight:600;line-height:1.4;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.bg-txt span{display:block;font-size:11.5px;color:var(--ink-3);margin-top:1px}
.bg-amt{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:15px;font-weight:700;color:var(--ink);
  cursor:pointer;border-bottom:1px dashed rgba(31,27,22,.2);
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.bg-amt:active{color:var(--gold)}
.bg-del{
  width:24px;height:24px;flex:none;border-radius:50%;
  border:none;background:transparent;color:var(--ink-3);
  font-size:15px;line-height:1;cursor:pointer;
}
.bg-del:hover{background:rgba(181,85,63,.12);color:var(--clay)}

.bg-form{
  display:grid;grid-template-columns:88px 1fr 84px;
  gap:7px;align-items:center;
  padding-top:12px;border-top:1px dashed rgba(30,38,54,.1);
}
.bg-f{
  font:inherit;font-size:13px;color:var(--ink);
  background:rgba(255,255,255,.66);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:inset 0 1px 3px rgba(30,38,54,.06), inset 0 1px 0 rgba(255,255,255,.9);
  border-radius:10px;padding:9px 10px;min-height:40px;
  min-width:0;
}
.bg-f:focus{outline:2px solid var(--gold-br);outline-offset:1px}
.bg-num{font-family:ui-monospace,Menlo,monospace;font-weight:600;text-align:right}
.bg-add{
  grid-column:1 / -1;margin-top:2px;
  font:inherit;font-size:13px;font-weight:700;
  color:#f8f2e4;background:linear-gradient(160deg,#3a332a,#221d18);
  border:none;border-radius:10px;padding:11px;min-height:42px;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px rgba(0,0,0,.5);
}
.bg-add:active{transform:scale(.985)}
.bg-tip{margin:9px 0 0;font-size:11px;color:var(--ink-3);line-height:1.6}

@media (min-width:560px){
  .bg-form{grid-template-columns:96px 1fr 96px 96px}
  .bg-add{grid-column:auto;margin-top:0}
}

/* 数据源标注：小一号，弱化 */
#wxBody .wx-src,
.wx-src{
  margin:10px 0 2px;text-align:center;
  font-size:10.5px!important;line-height:1.4;
  color:var(--ink-3);opacity:.9;
}

/* ---------- 天气图标 ---------- */
.wx-hero{margin-bottom:8px;padding:12px 10px}
.wx-rows{padding:3px 8px}
.wx-days{padding:7px 0}
.wx-r .lbl{flex:none}
.wx-r .tp{white-space:nowrap}
.wx-hero .em,.wx-now .wx-ic,.wx-r .em,.wx-day .wx-di{
  display:grid;place-items:center;flex:none;
}
.wx-hero .em{width:46px;height:46px}
.wx-now .wx-ic{width:40px;height:40px}
.wx-r .em{width:22px;height:22px}
.wx-day .wx-di{height:24px;margin:2px 0}
#t-wx .tool-head .ti{background:var(--wx-end);border-color:var(--wx-border)}

.tool[id]{scroll-margin-top:78px}
.wx-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}
.wx-controls .wx-note{margin:0}
.wx-panel .wx-controls{justify-content:flex-end}
.wx-card .wx-note{margin-top:7px}
.wx-refresh{
  flex:none;border:1px solid var(--wx-border);border-radius:9px;padding:6px 10px;
  background:var(--wx-surface);color:var(--ink);font:inherit;font-size:12px;cursor:pointer;
}
.wx-refresh:disabled{opacity:.5;cursor:default}
