/* 未闻花名 起始页 —— 布局参数：卡片 150/330、间距 30、图标 56、左栏 50 */
:root{
  --rail:50px; --gap:30px; --cell:60px;
  --card:150px; --card2:330px;
  --ink:#fff; --dim:rgba(255,255,255,.62); --faint:rgba(255,255,255,.4);
  --acc:#7CA5F5;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink); overflow:hidden; background:#111318;
  font:14px/1.5 system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.wall{position:fixed; inset:0; z-index:-2; background:#13151b center/cover no-repeat}
.shade{position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(110% 80% at 50% 30%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.42) 100%)}

/* ── 左栏 50px ── */
.rail{position:fixed; left:0; top:0; bottom:0; width:var(--rail); z-index:30;
  display:flex; flex-direction:column; align-items:center; padding:12px 0 14px;
  background:rgba(10,12,16,.34); backdrop-filter:blur(14px)}
.rail .ava{width:32px; height:32px; border-radius:50%; background:#E0A278; color:#14161a;
  display:grid; place-items:center; font-weight:700; font-size:13px; margin-bottom:22px; cursor:pointer}
.rail .grp{display:flex; flex-direction:column; align-items:center; gap:6px}
.rail a,.rail button{
  width:50px; height:52px; border:0; background:transparent; color:var(--dim); text-decoration:none;
  cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  transition:color .16s, background .16s; border-radius:8px;
}
.rail a:hover,.rail button:hover{color:#fff}
.rail a.on{color:#fff}
.rail a.on span{color:var(--acc)}
.rail svg{width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round}
.rail span{font-size:10px; line-height:1}
.rail .spacer{flex:1}
.rail .plus{font-size:20px; font-weight:300; line-height:1; color:var(--dim)}

/* ── 舞台 ── */
.stage{margin-left:var(--rail); height:100vh; display:flex; flex-direction:column;
  align-items:center; padding:26px 20px 0; overflow:hidden}
.view{display:none; flex-direction:column; align-items:center; width:100%}
.view.on{display:flex}

.clock{font-size:56px; font-weight:300; line-height:1; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums; text-shadow:0 2px 16px rgba(0,0,0,.4)}
.sub{margin-top:7px; font-size:12px; letter-spacing:.08em; color:rgba(255,255,255,.78);
  text-shadow:0 1px 3px rgba(0,0,0,.45)}

.search{position:relative; width:600px; height:40px; margin-top:15px}
.search form{position:relative; display:flex; align-items:center; height:100%}
.search input{width:100%; height:40px; padding:0 40px; border-radius:20px; border:1px solid rgba(255,255,255,.42);
  background:rgba(255,255,255,.82); color:#1C1B19; font-size:13.5px; outline:none;
  transition:background .18s, box-shadow .18s}
.search input::placeholder{color:rgba(28,27,25,.42)}
.search input:focus{background:#fff; box-shadow:0 6px 22px -10px rgba(0,0,0,.5)}
.search .ai{position:absolute; left:13px; width:18px; height:18px; border-radius:50%; cursor:pointer;
  background:linear-gradient(135deg,#5b6ef5,#8f6cf0); display:grid; place-items:center}
.search .ai svg{width:10px; height:10px; stroke:#fff; fill:none; stroke-width:2.2}
.search .mag{position:absolute; right:14px; width:15px; height:15px; stroke:rgba(28,27,25,.45);
  fill:none; stroke-width:2; pointer-events:none}
.engines{position:absolute; right:36px; top:0; height:40px; display:none; align-items:center; gap:2px}
.search.open .engines{display:flex}
.engines button{width:26px; height:24px; border:0; border-radius:6px; cursor:pointer;
  background:rgba(28,27,25,.07); color:rgba(28,27,25,.62); font-size:10.5px; font-weight:600}
.engines button.on{background:#1C1B19; color:#fff}

/* ── 小组件：10 列 × 60px，行高 150，间距 30 ── */
.widgets{width:870px; margin-top:18px; display:grid;
  grid-template-columns:repeat(10,60px); grid-auto-rows:176px; gap:20px}
.w{position:relative; border-radius:12px; overflow:hidden; cursor:pointer;
  display:flex; flex-direction:column; padding:12px 13px;
  transition:transform .18s, box-shadow .18s; text-decoration:none; color:inherit}
.w:hover{transform:translateY(-2px); box-shadow:0 14px 28px -18px rgba(0,0,0,.75)}
.w.dragging{opacity:.45; transform:scale(.97)}
.w.over{outline:2px dashed rgba(255,255,255,.55); outline-offset:2px}
.w{transition:transform .18s, box-shadow .18s, opacity .18s}
.w.dark{background:rgba(16,18,23,.66); border:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(16px)}
.w.light{background:rgba(252,250,246,.97); color:#1C1B19}
.w.blue{background:linear-gradient(155deg,#3a56c9 0%,#5468d6 55%,#7580e0 100%); color:#fff}

/* 天气 */
.w.wx{grid-column:span 2}
.wx .top{display:flex; justify-content:space-between}
.wx .city{font-size:11px; opacity:.78}
.wx .temp{font-size:32px; font-weight:400; line-height:1.05; margin-top:4px; letter-spacing:-.02em}
.wx .temp small{font-size:11px; opacity:.72}
.wx .desc{font-size:10.5px; opacity:.86; margin-top:2px}
.wx .aqi{margin-top:6px; font-size:9.5px; opacity:.92; white-space:nowrap; letter-spacing:-.01em}
.wx .range{font-size:9.5px; opacity:.82; margin-top:auto; white-space:nowrap}
.wx .range{font-size:10px; opacity:.8; margin-top:3px}
.wi{width:26px; height:26px; stroke:currentColor; fill:none; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round}

/* 日历 */
.w.cal{grid-column:span 2; justify-content:space-between}
.cal .ym{font-size:11px; color:#B4453C; font-weight:600}
.cal .day{font-size:46px; font-weight:300; line-height:1; margin-top:6px; letter-spacing:-.03em}
.cal .meta{font-size:10px; color:#8C877E; margin-top:5px}
.cal .lunar{font-size:10px; color:#8C877E; margin-top:2px}

/* 热搜 */
.w.hot{grid-column:span 4}
.hot .tabs{display:flex; gap:12px; font-size:10.5px; margin-bottom:7px; flex:none}
.hot .tabs b{font-weight:600; opacity:.95}
.hot .tabs s{text-decoration:none; opacity:.45}
.hot ol{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px}
.hot li{display:flex; gap:7px; font-size:11px; line-height:1.35; align-items:baseline}
.hot li a{color:rgba(255,255,255,.92); text-decoration:none; flex:1; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.hot li a:hover{color:#fff; text-decoration:underline}
.hot li i{font-style:normal; width:10px; flex:none; color:rgba(255,255,255,.4); font-size:10px}
.hot li em{font-style:normal; font-size:9.5px; color:rgba(255,255,255,.42); flex:none}
.hot li:nth-child(1) i,.hot li:nth-child(2) i{color:#F0A868}

/* 纪念日 */
.w.dma{grid-column:span 2; justify-content:space-between}
.dma .row{display:flex; justify-content:space-between; align-items:baseline; font-size:10px; color:rgba(255,255,255,.6); padding:5px 0; border-bottom:1px solid rgba(255,255,255,.06)}
.dma .row:last-of-type{border-bottom:0}
.dma .row b{font-size:15px; font-weight:400; color:#fff}
.dma .row b em{font-style:normal; font-size:9.5px; opacity:.55; margin-left:1px}
.w.dma .t{font-size:10.5px; color:rgba(255,255,255,.55); margin-bottom:2px}

/* 股票 */
.w.stock{grid-column:span 2; background:rgba(252,250,246,.97); color:#1C1B19}
.stock .hd{display:flex; justify-content:space-between; font-size:10.5px; color:#8C877E}
.stock .hd em{font-style:normal}
.sk{margin:5px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:4px}
.sk li{display:flex; justify-content:space-between; align-items:baseline; font-size:9.5px; line-height:1.4; white-space:nowrap; gap:6px}
.sk li>span{flex:none}
.sk li>span:first-child{color:#4A4741; max-width:44px; overflow:hidden; text-overflow:ellipsis; font-size:9px}
.sk li>span:last-child{margin-left:auto; display:flex; align-items:baseline; gap:4px}
.sk li b{font-weight:600; font-variant-numeric:tabular-nums; color:#3E3B36; font-size:10px}
.sk li em{font-style:normal; font-size:9px; font-variant-numeric:tabular-nums; margin-left:3px}
.sk li.up em{color:#C0392B}
.sk li.down em{color:#1E7B4D}

/* 每日一图 */
.w.daily{padding:0; grid-column:span 2; background:#222 center/cover no-repeat; color:#fff}
.daily::after{content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.02) 40%, rgba(0,0,0,.75) 100%)}
.daily .in{position:relative; z-index:1; margin-top:auto; padding:9px 11px 10px}

/* 备忘录 */
.w.memo{grid-column:span 2; justify-content:flex-start}
.memo .hd{font-size:10.5px; font-weight:600; color:#3E3B36; display:flex; justify-content:space-between}
.memo .hd em{font-style:normal; font-weight:400; color:#B0AAA1; font-size:9.5px}
.memo .txt{margin-top:7px; font-size:11px; line-height:1.6; color:#4A4741; overflow:hidden;
  display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical}

/* 文章/图片卡 */
.w.pic{ padding:0; background:#222 center/cover no-repeat; color:#fff}
.pic::after{content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.02) 35%, rgba(0,0,0,.72) 100%)}
.pic .in{position:relative; z-index:1; margin-top:auto; padding:11px 12px}
.pic .t, .daily .t{font-size:11px; font-weight:600; line-height:1.3; overflow:hidden; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical}
.pic .m, .daily .m{font-size:9px; opacity:.72; margin-top:2px; white-space:nowrap}

/* 文件夹 */
.w.fold{ background:rgba(238,236,231,.95); color:#1C1B19}
.fold .hd{font-size:10.5px; font-weight:600; color:#3E3B36}
.fold .g{display:grid; grid-template-columns:repeat(2,1fr); gap:6px; margin-top:8px; flex:1}
.fold .g span{border-radius:7px; display:grid; place-items:center; font-size:12px; color:#fff}

/* 下班倒计时 */
.w.off{grid-column:span 4; background:rgba(252,250,246,.97); color:#1C1B19; overflow:hidden}
.off .hd{display:flex; justify-content:space-between; font-size:10.5px; color:#8C877E}
.off .num{font-size:28px; font-weight:300; font-variant-numeric:tabular-nums; margin-top:2px; letter-spacing:-.01em}
.off .bar{height:3px; border-radius:2px; background:rgba(28,27,25,.1); margin-top:6px; overflow:hidden}
.off .bar i{display:block; height:100%; background:#E0A278; width:0; transition:width 1s linear}
.off .foot{margin-top:auto; display:grid; grid-template-columns:repeat(4,1fr); gap:6px}
.off .foot div{background:rgba(28,27,25,.05); border-radius:7px; padding:4px 3px; text-align:center}
.off .foot b{display:block; font-size:11.5px; font-weight:600; font-variant-numeric:tabular-nums}
.off .foot span{font-size:9px; color:#8C877E}
.off .cat{position:absolute; right:0; bottom:0; width:96px; height:74px;
  background:url('/assets/icons/cat.png') right bottom/contain no-repeat; opacity:.9}

/* ── 图标墙 ── */
.home-wrap{width:1164px; margin-top:18px; display:grid;
  grid-template-columns:870px 264px; column-gap:30px; row-gap:14px; align-items:start}
.home-wrap > .widgets{grid-column:1; grid-row:1}
.home-wrap > .side-icons{grid-column:2; grid-row:1; align-self:start}
.home-wrap > .icons{grid-column:1 / 3; grid-row:2}
.side-icons{flex:none; display:grid; grid-template-columns:repeat(4,60px); gap:18px 8px}
.icons{margin-top:2px; display:grid; grid-template-columns:repeat(14,60px);
  gap:18px 20px; justify-items:center; justify-content:start}
.icons.wide{display:flex; flex-wrap:wrap; gap:22px 26px; justify-content:center;
  align-items:flex-start; width:100%; max-width:1100px; margin-top:52px}
.tile{display:flex; flex-direction:column; align-items:center; gap:6px; width:60px;
  text-decoration:none; color:#fff; cursor:pointer; border:0; background:transparent; padding:0}
.tile .box{width:56px; height:56px; border-radius:14px; display:grid; place-items:center;
  background:rgba(255,255,255,.96); box-shadow:0 4px 12px -6px rgba(0,0,0,.55); overflow:hidden;
  transition:transform .16s, box-shadow .16s}
.tile:hover .box{transform:translateY(-3px); box-shadow:0 10px 20px -10px rgba(0,0,0,.7)}
.tile .box img{width:32px; height:32px; object-fit:contain}
.tile .box svg{width:26px; height:26px; stroke:#1C1B19; fill:none; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round}
.tile .name{font-size:10.5px; color:rgba(255,255,255,.92); text-shadow:0 1px 3px rgba(0,0,0,.5);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:60px}
.tile.add .box{background:rgba(255,255,255,.16); border:1px dashed rgba(255,255,255,.4);
  box-shadow:none; color:#fff; font-size:22px; font-weight:300}
.tile.add .name{opacity:.8}

/* 每日一句 */
.quote{margin-top:auto; padding:14px 20px 8px; font-size:11.5px; color:rgba(255,255,255,.66);
  text-shadow:0 1px 3px rgba(0,0,0,.45)}
.quote span{opacity:.55; margin-left:4px}
.quote{font-size:11px}
.vinfo{padding-bottom:12px; font-size:10px; color:rgba(255,255,255,.55)}
.vinfo a{color:inherit; text-decoration:none}

/* ── 模态：卡片详情 ── */
.mask{position:fixed; inset:0; background:rgba(6,8,12,.52); z-index:60; opacity:0;
  pointer-events:none; transition:opacity .22s; backdrop-filter:blur(6px)}
.mask.on{opacity:1; pointer-events:auto}
.modal{position:fixed; z-index:61; left:50%; top:50%; transform:translate(-50%,-46%) scale(.98);
  width:900px; max-width:calc(100vw - 80px); max-height:calc(100vh - 80px); opacity:0;
  pointer-events:none; transition:opacity .22s, transform .22s; border-radius:16px; overflow:hidden;
  background:linear-gradient(160deg,#4a5ec8 0%,#5a6fd0 45%,#6d80da 100%); color:#fff;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.8); display:flex; flex-direction:column}
.modal.on{opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1)}
.modal.light{background:#FCFAF6; color:#1C1B19}
.modal .bar{display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px 10px; flex:none}
.modal .bar .t{font-size:12px; opacity:.85}
.modal .bar .btns{display:flex; gap:6px}
.modal .bar button{width:26px; height:26px; border-radius:7px; border:0; cursor:pointer;
  background:rgba(255,255,255,.16); color:#fff; font-size:13px; line-height:1}
.modal .bar button:hover{background:rgba(255,255,255,.28)}
.modal.light .bar button{background:rgba(28,27,25,.07); color:#1C1B19}
.modal .body{padding:0 18px 18px; overflow:auto}

/* 天气弹窗 */
.wm-top{display:flex; align-items:flex-start; gap:26px; padding:2px 0 14px}
.wm-temp{font-size:64px; font-weight:200; line-height:1; letter-spacing:-.04em}
.wm-meta{font-size:12px; line-height:1.95; opacity:.92; padding-top:10px; letter-spacing:.01em}
.wm-meta b{font-weight:500}
.wm-line{font-size:11.5px; opacity:.88; margin-bottom:12px}
.wm-card{background:rgba(255,255,255,.12); border-radius:12px; padding:12px 14px; margin-bottom:12px}
.wm-card h4{margin:0 0 10px; font-size:11px; font-weight:500; opacity:.8}
.wm-chart{width:100%; height:132px; display:block}
.wm-7d{display:grid; grid-template-columns:repeat(7,1fr); gap:6px; text-align:center; font-size:10.5px}
.wm-7d div{padding:6px 2px; border-radius:8px}
.wm-7d div.on{background:rgba(255,255,255,.16)}
.wm-7d b{display:block; font-weight:500; opacity:.95}
.wm-7d small{display:block; opacity:.7; font-size:9.5px; margin-top:2px}

/* 日历弹窗 */
.cm{display:grid; grid-template-columns:repeat(7,1fr); gap:4px; text-align:center; font-size:12px}
.cm span{font-size:10.5px; color:#A8A29A; padding-bottom:6px}
.cm b{font-weight:400; padding:8px 0; border-radius:8px; color:#3E3B36}
.cm b.out{color:#CFC9C0}
.cm b.today{background:#B4453C; color:#fff; font-weight:600}

/* 热搜弹窗 */
.hm li{display:flex; gap:10px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.08);
  align-items:baseline; font-size:12.5px}
.hm li a{color:#fff; text-decoration:none; flex:1}
.hm li a:hover{text-decoration:underline}
.hm li i{font-style:normal; width:16px; color:rgba(255,255,255,.42); font-size:11px}
.hm li:nth-child(-n+3) i{color:#F0A868}
.hm li em{font-style:normal; font-size:11px; color:rgba(255,255,255,.45)}

/* 备忘弹窗 */
.mm textarea{width:100%; height:330px; border:0; outline:none; resize:none; background:transparent;
  font:13.5px/1.9 inherit; color:#2E2C28}

/* 设置：两栏抽屉 */
.drawer{position:fixed; top:0; right:0; bottom:0; width:470px; z-index:70;
  background:rgba(252,250,246,.98); color:#1C1B19; transform:translateX(102%);
  transition:transform .26s cubic-bezier(.22,.61,.36,1); display:flex; box-shadow:-20px 0 60px -30px rgba(0,0,0,.5)}
.drawer.on{transform:none}
.drawer .menu{width:172px; flex:none; border-right:1px solid rgba(28,27,25,.08);
  padding:16px 8px; overflow:auto}
.drawer .menu .hd{font-size:11px; color:#A8A29A; padding:0 10px 10px}
.drawer .menu button{display:flex; align-items:center; gap:8px; width:100%; padding:9px 10px;
  border:0; background:transparent; border-radius:8px; cursor:pointer; font-size:12.5px;
  color:#3E3B36; text-align:left}
.drawer .menu button:hover{background:rgba(28,27,25,.05)}
.drawer .menu button.on{background:rgba(124,165,245,.16); color:#2F5AB8; font-weight:600}
.drawer .menu svg{width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.7}
.drawer .pane{flex:1; padding:18px 16px; overflow:auto}
.drawer .pane h4{margin:0 0 4px; font-size:13px}
.drawer .pane .hint{margin:0 0 16px; font-size:11px; color:#A8A29A; line-height:1.6}
.drawer .pane .lab{font-size:10.5px; letter-spacing:.12em; color:#A8A29A; margin:16px 0 8px; text-transform:uppercase}
.drawer .close{position:absolute; right:12px; top:12px; width:26px; height:26px; border:0;
  border-radius:7px; background:rgba(28,27,25,.06); cursor:pointer; color:#3E3B36}
.row{display:flex; align-items:center; justify-content:space-between; padding:9px 0;
  border-bottom:1px solid rgba(28,27,25,.06); font-size:12.5px; color:#3E3B36}
.row:last-child{border-bottom:0}
.sw{width:36px; height:20px; border-radius:10px; background:rgba(28,27,25,.14); position:relative;
  cursor:pointer; flex:none; transition:background .16s}
.sw::after{content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%;
  background:#fff; transition:transform .16s; box-shadow:0 1px 3px rgba(0,0,0,.2)}
.sw.on{background:#5B7CE0}
.sw.on::after{transform:translateX(16px)}
.thumbs{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.thumb{height:56px; border-radius:8px; background-size:cover; background-position:center;
  border:2px solid transparent; cursor:pointer}
.thumb.on{border-color:#5B7CE0}
.chips{display:flex; gap:6px; flex-wrap:wrap}
.chip{padding:5px 10px; border-radius:7px; border:1px solid rgba(28,27,25,.14); background:transparent;
  color:#3E3B36; font-size:11.5px; cursor:pointer}
.chip.on{background:#5B7CE0; border-color:transparent; color:#fff}
.btn{width:100%; padding:9px; border-radius:8px; cursor:pointer; font-size:12px;
  background:rgba(28,27,25,.06); border:1px solid rgba(28,27,25,.1); color:#3E3B36; margin-top:8px}
.btn:hover{background:rgba(28,27,25,.1)}

@media (max-width:1080px){
  .icons.wide{grid-template-columns:repeat(8,60px)}
}
@media (max-width:900px){
  body{overflow:auto}
  .rail{display:none}
  .stage{margin-left:0; padding:24px 14px}
  .widgets{width:100%; grid-template-columns:repeat(2,1fr); grid-auto-rows:auto; gap:12px}
  .w{grid-column:span 1 !important; min-height:140px}
  .w.hot,.w.off{grid-column:span 2 !important}
  .icons,.icons.wide{width:100%; grid-template-columns:repeat(5,1fr); gap:14px}
  .search{width:100%}
  .modal{width:calc(100vw - 28px)}
  .drawer{width:100vw}
}

/* ── 卡片外框：名称标签 + 悬停操作 ── */
.w-item{position:relative; display:flex; flex-direction:column; align-items:center; min-width:0}
.w-item[data-w="hot"], .w-item[data-w="off"]{grid-column:span 4}
.w-item[data-w="daily"]{grid-column:span 2}
.w-item[data-w="weather"], .w-item[data-w="cal"], .w-item[data-w="dma"],
.w-item[data-w="stock"], .w-item[data-w="daily"], .w-item[data-w="memo"]{grid-column:span 2}
.w-item > .w{width:100%; height:150px; flex:none}
.wlabel{margin-top:7px; font-size:11px; color:rgba(255,255,255,.78); letter-spacing:.02em;
  text-shadow:0 1px 4px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); white-space:nowrap}
.w-item:hover .wlabel{color:#fff}
.ops{position:absolute; top:6px; right:6px; display:flex; gap:4px; opacity:0; transition:opacity .15s; z-index:5}
.w-item:hover .ops{opacity:1}
.ops button{width:22px; height:22px; border-radius:6px; border:0; cursor:pointer;
  background:rgba(0,0,0,.42); color:#fff; font-size:11px; line-height:1; display:grid; place-items:center;
  backdrop-filter:blur(4px)}
.ops button:hover{background:rgba(0,0,0,.66)}
.w-item.wide2 > .w{height:150px}

/* 图标悬停删除 */
.tile{position:relative}
.tile .del{position:absolute; top:-4px; right:-2px; width:17px; height:17px; border-radius:50%;
  background:rgba(0,0,0,.68); color:#fff; font-size:11px; line-height:1; border:0; cursor:pointer;
  display:none; place-items:center; z-index:3}
.tile:hover .del{display:grid}

/* ── 小工具面板 ── */
.tool{padding:2px 2px 6px; font-size:13px}
.tool .tip{font-size:11px; opacity:.6; margin-top:10px}
.tool .lab2{font-size:11px; opacity:.6; margin:10px 0 4px}
.tool .big2{font-size:26px; font-weight:300; font-variant-numeric:tabular-nums; letter-spacing:-.02em}
.tool .row2{display:flex; flex-direction:column}
.tool select,.tool input[type=number],.tool input[type=text],.tool textarea{
  width:100%; padding:8px 10px; border-radius:8px; border:1px solid rgba(28,27,25,.14);
  background:rgba(255,255,255,.8); font:13px/1.6 inherit; color:#1C1B19; outline:none; margin-bottom:8px}
.tool textarea{resize:vertical; font-family:inherit}
.tool .uOut{padding:10px 12px; border-radius:8px; background:rgba(28,27,25,.05);
  font-variant-numeric:tabular-nums; word-break:break-all; min-height:38px}
.tool .btnrow{display:flex; gap:6px; flex-wrap:wrap; margin:4px 0 10px}
.tool .btnrow button{padding:6px 11px; border-radius:7px; border:1px solid rgba(28,27,25,.14);
  background:rgba(255,255,255,.7); font-size:12px; cursor:pointer; color:#1C1B19}
.tool .btnrow button:hover{background:rgba(28,27,25,.06)}
.calc-disp{padding:14px 16px; border-radius:10px; background:rgba(28,27,25,.06);
  font-size:30px; font-weight:300; text-align:right; font-variant-numeric:tabular-nums;
  overflow:hidden; text-overflow:ellipsis; min-height:64px; line-height:1.3}
.calc-keys{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:12px}
.calc-keys .ck{height:46px; border-radius:9px; border:1px solid rgba(28,27,25,.1); cursor:pointer;
  background:rgba(255,255,255,.85); font-size:16px; color:#1C1B19; transition:background .12s}
.calc-keys .ck:hover{background:#fff}
.calc-keys .ck.op{background:rgba(224,162,120,.9); border-color:transparent; color:#1C1B19; font-weight:600}
.calc-keys .ck.fn{background:rgba(28,27,25,.07)}
.tile.dragging{opacity:.4}

/* ── 拖拽重影修复 ── */
.w-item.dragging{opacity:.35; z-index:1}
.w-item{position:relative; z-index:0}
.w-item:hover{z-index:2}

/* ── 热搜大面板（白色） ── */
.modal.hotpanel{width:1040px; max-width:calc(100vw - 60px); height:min(720px,calc(100vh - 80px));
  background:#fff; color:#191919; display:flex; flex-direction:column}
.hp-head{display:flex; align-items:center; gap:10px; padding:16px 20px 10px; flex:none}
.hp-head .logo{width:26px; height:26px; border-radius:7px; background:#FF6B4A; display:grid; place-items:center;
  color:#fff; font-size:13px; font-weight:700}
.hp-head h3{margin:0; font-size:16px; font-weight:600}
.hp-head .tools{margin-left:auto; display:flex; gap:8px; align-items:center}
.hp-head .tools button{border:1px solid #e3e3e3; background:#fff; border-radius:8px; padding:5px 10px;
  font-size:12px; color:#444; cursor:pointer; display:flex; align-items:center; gap:4px}
.hp-head .tools button:hover{background:#f5f5f5}
.hp-head .tools .x{border:0; font-size:15px; padding:4px 8px; color:#888}
.hp-cats{display:flex; gap:6px; padding:0 20px 12px; overflow-x:auto; flex:none; scrollbar-width:none}
.hp-cats::-webkit-scrollbar{display:none}
.hp-cats button{flex:none; border:0; background:transparent; font-size:13px; color:#666;
  padding:6px 12px; border-radius:16px; cursor:pointer; white-space:nowrap}
.hp-cats button.on{background:#eef3ff; color:#2f6bff; font-weight:600}
.hp-body{flex:1; display:flex; min-height:0; border-top:1px solid #f0f0f0}
.hp-src{width:170px; flex:none; padding:12px 10px; border-right:1px solid #f0f0f0; display:flex; flex-direction:column; gap:2px}
.hp-src button{display:flex; align-items:center; gap:9px; padding:9px 10px; border:0; border-radius:9px;
  background:transparent; cursor:pointer; font-size:13px; color:#333; text-align:left; width:100%}
.hp-src button:hover{background:#f6f6f6}
.hp-src button.on{background:#eef3ff; color:#2f6bff; font-weight:600}
.hp-src button i{width:18px; height:18px; border-radius:5px; display:grid; place-items:center;
  font-style:normal; font-size:10px; color:#fff; flex:none}
.hp-src button.dead{opacity:.42}
.hp-list{flex:1; overflow-y:auto; padding:6px 18px 12px}
.hp-list .grp{font-size:13px; font-weight:600; padding:12px 0 6px; display:flex; align-items:center; gap:8px}
.hp-list .grp i{width:20px; height:20px; border-radius:6px; display:grid; place-items:center; font-style:normal;
  font-size:11px; color:#fff}
.hp-row{display:flex; align-items:baseline; gap:10px; padding:9px 4px; border-radius:7px}
.hp-row:hover{background:#fafafa}
.hp-row .rk{width:18px; flex:none; text-align:center; font-size:13px; font-weight:600; color:#b8b8b8}
.hp-row:nth-child(1) .rk,.hp-row:nth-child(2) .rk,.hp-row:nth-child(3) .rk{color:#fff}
.hp-row .rk.b1{background:#FF5A5A; border-radius:5px; color:#fff}
.hp-row .rk.b2{background:#FF8A3D; border-radius:5px; color:#fff}
.hp-row .rk.b3{background:#FFC53D; border-radius:5px; color:#fff}
.hp-row a{flex:1; color:#191919; text-decoration:none; font-size:13.5px; line-height:1.5;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.hp-row a:hover{color:#2f6bff}
.hp-row .hot{font-size:12px; color:#b0b0b0; flex:none; font-variant-numeric:tabular-nums}
.hp-foot{flex:none; text-align:center; font-size:11.5px; color:#b5b5b5; padding:10px; border-top:1px solid #f4f4f4}

/* ── 媒体工具箱卡（2x2 文件夹） ── */
.w.tbox{grid-column:span 2; background:rgba(250,250,252,.97); color:#1C1B19; padding:10px}
.tbox .cap{font-size:10.5px; color:#8C877E; display:flex; align-items:center; gap:5px}
.tbox .g{display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:8px; flex:1}
.tbox .g span{border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; font-size:9.5px; background:#f1f3f8; color:#3E3B36}
.tbox .g span b{font-size:15px; font-weight:400}

/* ── 倒计时配置面板 ── */
.offcfg{padding:2px}
.offcfg .oRow{display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:11px 0; border-bottom:1px solid rgba(28,27,25,.07); font-size:13px; color:#3E3B36}
.offcfg .oRow:last-child{border-bottom:0}
.offcfg .oRow > span:first-child{color:#8C877E; font-size:12.5px; flex:none}
.offcfg .days{display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end}
.offcfg .chip{padding:5px 9px; border-radius:7px; border:1px solid rgba(28,27,25,.14);
  background:transparent; font-size:12px; cursor:pointer; color:#3E3B36}
.offcfg .chip.on{background:#5B7CE0; border-color:transparent; color:#fff}
.offcfg .times{display:flex; align-items:center; gap:6px; font-size:12.5px; color:#3E3B36}
.offcfg input[type=time],.offcfg input[type=number]{padding:5px 8px; border-radius:7px;
  border:1px solid rgba(28,27,25,.14); background:#fff; font:12.5px inherit; color:#1C1B19; outline:none}

/* ── 拖拽：占位槽 + 跟手浮层 + 让位动画 ── */
.w-ph{background:rgba(255,255,255,.08); border:1.5px dashed rgba(255,255,255,.42);
  border-radius:12px; min-height:100px}
.widgets .w-item.dragging{opacity:.94; z-index:900;
  filter:drop-shadow(0 18px 34px rgba(0,0,0,.55)); transform:scale(1.02); cursor:grabbing}
.widgets .w-item{cursor:grab}
.widgets .w-item .ops, .widgets .w-item a{cursor:pointer}
.widgets .w-item > .w{transition:box-shadow .15s}

/* ── 撤销提示条 ── */
.toast{position:fixed; left:50%; bottom:42px; transform:translate(-50%,20px); z-index:95;
  display:flex; align-items:center; gap:14px; padding:11px 16px; border-radius:10px;
  background:rgba(22,25,31,.94); color:#fff; font-size:13px; box-shadow:0 12px 30px -12px rgba(0,0,0,.7);
  opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; backdrop-filter:blur(10px)}
.toast.on{opacity:1; transform:translate(-50%,0); pointer-events:auto}
.toast button{border:0; background:rgba(255,255,255,.16); color:#fff; padding:5px 12px;
  border-radius:7px; font-size:12.5px; cursor:pointer; font-weight:600}
.toast button:hover{background:rgba(255,255,255,.28)}

/* ── 大图 / 每日一文 ── */
.modal.picview{width:920px; background:#0f1115; padding:0}
.picview img{width:100%; display:block; max-height:70vh; object-fit:cover}
.picview .cap{padding:14px 18px 16px; color:#fff}
.picview .cap h4{margin:0 0 4px; font-size:15px; font-weight:600}
.picview .cap p{margin:0; font-size:11.5px; color:rgba(255,255,255,.55)}
.quoteview{padding:30px 28px 26px; text-align:center}
.quoteview .q{font-size:20px; line-height:1.9; color:#1C1B19; letter-spacing:.01em}
.quoteview .by{margin-top:16px; font-size:12.5px; color:#8C877E}
.quoteview .acts{margin-top:22px; display:flex; gap:10px; justify-content:center}
.quoteview .acts button{padding:8px 16px; border-radius:8px; border:1px solid rgba(28,27,25,.14);
  background:#fff; cursor:pointer; font-size:12.5px; color:#3E3B36}
.quoteview .acts button:hover{background:#f6f6f6}

/* 城市选择 */
.citygrid{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:4px}
.citygrid button{padding:12px 8px; border-radius:9px; border:1px solid rgba(28,27,25,.12);
  background:#fff; cursor:pointer; font-size:13px; color:#3E3B36}
.citygrid button:hover{background:#f4f6fb; border-color:#5B7CE0}
.citygrid button.on{background:#5B7CE0; border-color:transparent; color:#fff; font-weight:600}
.wx .city{cursor:pointer; display:inline-flex; align-items:center; gap:3px}
.wx .city:hover{opacity:1; text-decoration:underline}
#quote:hover{color:#fff}

/* ── 城市：搜索 + 定位 ── */
.citybox{padding:2px}
.citybar{display:flex; gap:8px; margin-bottom:12px}
.citybar input{flex:1; padding:9px 12px; border-radius:9px; border:1px solid rgba(28,27,25,.16);
  font-size:13px; outline:none}
.citybar input:focus{border-color:#5B7CE0}
.citybar button{flex:none; padding:9px 14px; border-radius:9px; border:1px solid rgba(28,27,25,.16);
  background:#fff; cursor:pointer; font-size:12.5px; color:#3E3B36; white-space:nowrap}
.citybar button:hover{background:#f4f6fb}
.citybar button.on{background:#5B7CE0; color:#fff; border-color:transparent}
.citylist{max-height:300px; overflow-y:auto; display:grid; grid-template-columns:repeat(4,1fr); gap:7px}
.citylist button{padding:11px 6px; border-radius:8px; border:1px solid rgba(28,27,25,.12);
  background:#fff; cursor:pointer; font-size:12.5px; color:#3E3B36}
.citylist button:hover{background:#f4f6fb; border-color:#5B7CE0}
.citylist button.on{background:#5B7CE0; border-color:transparent; color:#fff; font-weight:600}
.citylist .empty{grid-column:1/-1; text-align:center; color:#A8A29A; font-size:12.5px; padding:26px 0}

/* ── 日历（含黄历/节假日） ── */
.calwrap{display:flex; gap:18px}
.calleft{flex:1}
.calright{width:300px; flex:none; border-left:1px solid rgba(28,27,25,.08); padding-left:18px}
.calm{display:grid; grid-template-columns:repeat(7,1fr); gap:2px}
.calm .wd{font-size:10.5px; color:#A8A29A; text-align:center; padding:4px 0}
.calm .cell{aspect-ratio:1/.92; border-radius:8px; padding:3px 2px; cursor:pointer; position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  border:1px solid transparent; transition:background .12s}
.calm .cell:hover{background:#F4F6FB}
.calm .cell.out{opacity:.32}
.calm .cell.on{background:#EEF3FF; border-color:#5B7CE0}
.calm .cell .d{font-size:14px; color:#2E2C28; font-weight:500; line-height:1.1}
.calm .cell .l{font-size:8.5px; color:#A8A29A; line-height:1.1; white-space:nowrap}
.calm .cell .l.fes{color:#C0392B}
.calm .cell .l.term{color:#2F6BFF}
.calm .cell .tag{position:absolute; top:2px; right:2px; font-size:8px; padding:0 2px; border-radius:3px; line-height:1.4}
.calm .cell .tag.off{background:#E8453C; color:#fff}
.calm .cell .tag.work{background:#8C877E; color:#fff}
.calright h4{margin:0 0 6px; font-size:15px}
.calright .sub2{font-size:11.5px; color:#A8A29A; margin-bottom:12px}
.calright .rowc{display:flex; gap:8px; margin-bottom:9px; font-size:12.5px; align-items:flex-start}
.calright .rowc b{flex:none; width:26px; height:20px; border-radius:5px; display:grid; place-items:center;
  font-size:11px; font-weight:600; color:#fff}
.calright .rowc b.yi{background:#3F9E68}
.calright .rowc b.ji{background:#C0392B}
.calright .rowc span{line-height:1.75; color:#3E3B36}

/* ── 日历：周末/节假日底色 + 滑动 ── */
.calm{position:relative; touch-action:pan-y; user-select:none; will-change:transform}
.calm .cell.weekend{background:rgba(90,120,190,.07)}
.calm .cell.holiday{background:#FFF1EF; border-color:#F6D3CE}
.calm .cell.workday{background:#F6F4EF}
.calm .cell.on{background:#EEF3FF; border-color:#5B7CE0; box-shadow:0 0 0 1px #5B7CE0 inset}
.calm .cell.holiday.on{background:#FFE7E3}
.calm .cell .d{position:relative}
.calm .cell.weekend .d{color:#2F5AB8}
.calm .cell.holiday .d{color:#C0392B}
.calm .cell .tag.off{background:#E8453C}
.calm .cell .tag.work{background:#8C877E}
.calm .drag-hint{position:absolute; inset:0; pointer-events:none}
.calm.swiping{transition:none !important}

/* ── 添加图标弹窗 ── */
.addicon{padding:2px 2px 4px}
.addicon label{display:block; font-size:12px; color:#8C877E; margin:12px 0 6px}
.addicon label:first-child{margin-top:0}
.addicon input{width:100%; padding:10px 12px; border-radius:9px; box-sizing:border-box;
  border:1px solid rgba(28,27,25,.16); background:#fff !important; color:#1C1B19 !important;
  font:13px/1.5 inherit; outline:none; appearance:none; -webkit-appearance:none}
.addicon input::placeholder{color:#B9B3A9}
.addicon input:focus{border-color:#5B7CE0; box-shadow:0 0 0 3px rgba(91,124,224,.12)}
.addicon .hint{font-size:11px; color:#A8A29A; margin:10px 0 0; line-height:1.6}
.addicon .btn.primary{width:100%; margin-top:16px; padding:11px; border-radius:9px; border:0;
  background:#5B7CE0; color:#fff; font-size:13px; font-weight:600; cursor:pointer}
.addicon .btn.primary:hover{background:#4A6BD0}

/* 图标加载失败兜底：显示首字 */
.box.nofav{background:#EDF0F7 !important; display:grid; place-items:center}
.box.nofav img{display:none}
.box.nofav::after{content:attr(data-ch); font-size:19px; font-weight:600; color:#5B7CE0; line-height:1}

/* ── 图标视觉重量统一 ── */
.tile .box img{width:34px !important; height:34px !important; object-fit:contain}
.tile .box svg{width:29px; height:29px; stroke-width:1.9}
.tile .box{background:#fff}
/* 线框图标（站内/工具）给极浅底色，避免在白框里显得空 */
.tile .box.line{background:#F4F6FA}
.tile .box.line svg{stroke:#2B2F38}
/* 右侧分组与底部同尺寸 */
.side-icons .box{width:56px; height:56px}
.side-icons .tile .name{font-size:10.5px}

/* 覆盖上面：统一白底，只在线宽和颜色上区分 */
.tile .box.line{background:#fff !important}
.tile .box.line svg{stroke:#1F2329 !important; stroke-width:2}
.tile .box img{width:33px !important; height:33px !important}
.side-icons .tile .box img{width:33px !important; height:33px !important}
.side-icons .tile .box svg{width:28px; height:28px}

/* ── 站内/工具图标：彩色块 + 白色图形（与外站 favicon 同为彩色系） ── */
.tile .box.solid{border:0; box-shadow:0 4px 12px -6px rgba(0,0,0,.5)}
.tile .box.solid svg{stroke:#fff !important; stroke-width:1.9; fill:none}
.tile .box.solid:hover{filter:brightness(1.06)}

/* ══ 移动端适配（≤820px） ══ */
@media (max-width: 820px){
  html,body{height:auto}
  body{overflow-x:hidden; overflow-y:auto}

  /* 左栏改为顶部横条：第一行 头像/添加/设置，第二行 分类均分（6 个一行放得下） */
  .rail{display:flex !important; position:fixed; top:0; left:0; right:0; bottom:auto;
    width:100%; height:auto; flex-wrap:wrap; flex-direction:row; align-items:center; gap:0;
    padding:8px 10px 6px; z-index:60;
    border-right:0; border-bottom:1px solid rgba(255,255,255,.08)}
  .rail .ava{width:26px; height:26px; margin:0 8px 0 0; font-size:12px; flex:none}
  .rail .grp{order:10; flex:none; width:100%; margin-top:4px;
    display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:2px;
    flex-direction:row; overflow:visible; scrollbar-width:none}
  .rail .grp::-webkit-scrollbar{display:none}
  .rail a,.rail button{width:auto; height:52px; padding:0 10px; flex-direction:row; gap:5px; flex:none}
  .rail .grp a{height:44px; padding:0 3px; gap:4px; justify-content:center}
  .rail a span,.rail button span{font-size:11.5px}
  .rail .grp a span{font-size:11px}
  .rail svg{width:15px; height:15px}
  .rail .spacer{display:none}
  .rail .plus{padding:0 10px; height:34px; margin-left:6px}
  .rail button#gear{margin-left:auto; height:34px; padding:0 8px}

  /* 舞台 */
  .stage{margin-left:0; height:auto; min-height:100vh;
    padding:112px 14px 0; overflow:visible}
  .clock{font-size:46px}
  .sub{font-size:11.5px; letter-spacing:.04em; margin-top:5px}
  .search{width:100%; max-width:none; margin-top:12px}

  /* 小组件：两列 */
  .home-wrap{display:block; width:100%; margin-top:14px}
  .home-wrap > .widgets{display:grid !important; width:100% !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    grid-auto-rows:auto !important; gap:12px !important}
  .w-item{grid-column:span 1 !important}
  .w-item[data-w="hot"], .w-item[data-w="off"]{grid-column:span 2 !important}
  .w-item > .w{height:auto; min-height:132px; flex:1}
  .w.wx,.w.cal,.w.daily,.w.memo,.w.stock{min-height:132px}
  .wx .temp{font-size:26px}
  .cal .day{font-size:34px}
  .off .num{font-size:24px}
  .off .foot b{font-size:11px}
  .hot li{font-size:10.5px}
  .sk li{font-size:9px}
  .wlabel{margin-top:6px; font-size:10.5px}

  /* 右侧图标列并到下方 */
  .home-wrap > .side-icons{display:grid !important; grid-template-columns:repeat(5,1fr) !important;
    gap:14px 8px; margin-top:16px; width:100%}
  .home-wrap > .icons{display:grid !important; grid-template-columns:repeat(5,1fr) !important;
    gap:14px 8px; margin-top:16px; width:100% !important}
  .tile{width:auto}
  .tile .box, .side-icons .tile .box{width:46px; height:46px; border-radius:12px}
  .tile .box img{width:27px !important; height:27px !important}
  .tile .box svg, .side-icons .tile .box svg{width:23px; height:23px}
  .tile .name{font-size:10px; max-width:100%}

  /* 底部 */
  .quote{padding:16px 6px 6px; font-size:11px; line-height:1.8}
  .vinfo{font-size:9.5px; padding-bottom:14px}

  /* 弹窗全屏化 */
  .modal{width:calc(100vw - 20px) !important; max-height:86vh; border-radius:14px}
  .modal .body{padding:0 12px 14px}
  .wm-temp{font-size:48px}
  .wm-7d{gap:3px}
  .hp-head h3{font-size:15px}
  .hp-cats{padding:0 12px 10px}
  .hp-body{flex-direction:column}
  .hp-src{width:100%; flex-direction:row; overflow-x:auto; border-right:0;
    border-bottom:1px solid #f0f0f0; padding:8px 10px; gap:6px}
  .hp-src button{width:auto; flex:none; padding:6px 10px}
  .hp-list{padding:4px 12px 10px}
  .hp-row a{font-size:12.5px}
  .citylist{grid-template-columns:repeat(3,1fr)}
  .calwrap{flex-direction:column; gap:0}
  .calright{width:100%; border-left:0; border-top:1px solid rgba(28,27,25,.08);
    padding:14px 0 0; margin-top:12px}
  .calm .cell{aspect-ratio:1/1.15}
  .calm .cell .l{font-size:8px}
  .calm .cell .d{font-size:12.5px}

  /* 设置抽屉全宽 */
  .drawer{width:100vw !important}
  .drawer .menu{width:132px}
  .addicon input{font-size:16px}   /* iOS 防缩放 */
  .citybar input{font-size:16px}
  .toast{left:12px; right:12px; transform:translateY(16px); bottom:20px}
  .toast.on{transform:none}
}

/* 超小屏 */
@media (max-width: 360px){
  .clock{font-size:38px}
  .home-wrap > .widgets{grid-template-columns:1fr !important}
  .w-item{grid-column:span 1 !important}
  .w-item[data-w="hot"], .w-item[data-w="off"]{grid-column:span 1 !important}
  .home-wrap > .icons,.home-wrap > .side-icons{grid-template-columns:repeat(4,1fr) !important}
}

/* 手机端：导航条实底 + 图标两组分隔 */
@media (max-width: 820px){
  .rail{background:rgba(16,18,24,.92) !important; backdrop-filter:blur(18px)}
  .home-wrap > .side-icons{margin-top:18px; padding-bottom:16px;
    border-bottom:1px solid rgba(255,255,255,.10)}
  .home-wrap > .icons{margin-top:14px}
  /* 手机端卡片间距略松，避免拥挤 */
  .home-wrap > .widgets{gap:14px !important}
  /* 手机端热搜只显示 4 条已够，卡片自动高度 */
  .w.hot{min-height:auto}
  /* 指数卡文字不挤 */
  .sk li{font-size:9.5px}
  .sk li b{font-size:10px}
}

/* 手机端：日历网格宽度修正 + 弹窗贴合 */
@media (max-width: 820px){
  .calm{width:100% !important; grid-template-columns:repeat(7, minmax(0,1fr)) !important; gap:1px}
  .calm .cell{padding:2px 1px; min-width:0}
  .calm .cell .l{font-size:7.5px; letter-spacing:-.02em}
  .calm .cell .d{font-size:12px}
  .calm .cell .tag{font-size:7px; padding:0 1px; top:1px; right:1px}
  .calwrap{width:100%}
  .calleft{width:100%; min-width:0}
  .modal{width:auto !important; left:8px; right:8px; transform:none !important;
    margin:0; top:50%; transform:translateY(-50%) !important}
  .modal.on{transform:translateY(-50%) !important}
  .modal .body{max-height:calc(86vh - 56px); overflow-y:auto}
}

/* 手机端弹窗：解除 max-width 限制，左右各留 8px */
@media (max-width: 820px){
  #modal, .modal{
    width:auto !important; max-width:none !important;
    left:8px !important; right:8px !important; margin:0 !important;
    top:50% !important; transform:translateY(-50%) !important;
    max-height:88vh !important;
  }
  #modal.on, .modal.on{transform:translateY(-50%) !important}
  #modal .body, .modal .body{max-height:calc(88vh - 54px); overflow-y:auto; padding:0 12px 14px}
}
