/* 02 侧边栏。class 一律 sd- 开头 */
.sd-scrim { position: absolute; inset: 0; z-index: 30; background: rgba(70, 86, 94, .38); opacity: 0; transition: opacity .25s ease; border: 0; padding: 0; width: 100%; cursor: default; }
.sd { position: absolute; left: 0; top: 0; bottom: 0; z-index: 31; width: var(--side-w); overflow: hidden;
  box-shadow: 8px 0 22px rgba(46, 56, 62, .26); transform: translateX(-104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.sd-open .sd-scrim { opacity: 1; }
.sd-open .sd { transform: none; }

/* 蕾丝：照客户参考图重画的一整条不规则蕾丝（左上铺开、中间收细、左下铺得更宽），竖着拉满 */
.sd-lace { position: absolute; left: 0; top: 0; width: 92px; height: 100%; opacity: .9; pointer-events: none; filter: drop-shadow(1px 1px 1.5px rgba(81, 75, 74, .18)); }
.sd-rule { position: absolute; right: 8px; top: 0; bottom: 0; width: 4px; border-left: 1px solid var(--lace); border-right: 1px solid var(--lace); }

/* 花押 + 名字 + 小字 + 蝴蝶结 */
.sd-head { position: absolute; left: 62px; right: 16px; top: calc(var(--status-h) + 14px); display: flex; flex-direction: column; align-items: center; }
.sd-mono { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--teal-pale); display: flex; align-items: center; justify-content: center; }
.sd-mono span { width: 38px; height: 38px; border-radius: 50%; border: .6px solid var(--mauve-pale); display: flex; align-items: center; justify-content: center; font-family: var(--font-script); font-size: 26px; line-height: 26px; color: var(--mauve-deep); padding-top: 3px; }
.sd-head h2 { margin: 8px 0 0; font-family: var(--font-script); font-weight: 400; font-size: 36px; line-height: 42px; color: var(--mauve-deep); text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 1px 2px 3px rgba(112, 100, 119, .2); }
.sd-head p { margin: 2px 0 0; font-size: 10px; letter-spacing: 4px; color: #81766F; }
.sd-head .bow { width: 54px; margin-top: 8px; filter: drop-shadow(0 2px 2px rgba(81, 75, 74, .16)); }

/* 栏目 */
.sd-nav { position: absolute; left: 52px; right: 26px; top: calc(var(--status-h) + 196px); display: flex; flex-direction: column; }
.sd-item { position: relative; display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 6px; border-radius: 12px; color: var(--ink); }
.sd-item:hover { background: rgba(169, 154, 170, .1); }
.sd-item .ico { color: var(--mauve-deep); width: 20px; height: 20px; }
.sd-item .t { display: flex; flex-direction: column; gap: 2px; }
.sd-item b { font-size: 15px; font-weight: 500; }
.sd-item small { font-size: 10px; color: #81766F; letter-spacing: .3px; white-space: nowrap; }
.sd-item .wave { display: none; }
.sd-item[aria-current="page"] { color: var(--mauve-deep); }
.sd-item[aria-current="page"] small { display: none; }
.sd-item[aria-current="page"] .wave { display: block; }

/* 左下：我的头像，点了进设置 */
.sd-me { position: absolute; left: 53px; bottom: calc(36px + var(--safe-b)); width: 50px; height: 50px; border-radius: 50%; background: var(--card); border: 1px solid var(--mauve-pale);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--lace), 0 3px 8px rgba(81, 75, 74, .14); display: flex; align-items: center; justify-content: center; color: var(--mauve-deep); font-size: 18px; }
.sd-me img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sd-me .gear { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mauve-btn); border: 2px solid var(--paper); display: flex; align-items: center; justify-content: center; color: var(--paper); }

/* 右下：丁香 */
.sd-lilac { position: absolute; right: 12px; bottom: calc(6px + var(--safe-b)); width: 92px; opacity: .92; transform: scaleX(-1); pointer-events: none; }

/* 矮屏（≤700 高）：栏目往上收一点，丁香藏起来免得挤 */
@media (max-height: 700px) { .sd-head { top: calc(var(--status-h) + 4px); } .sd-head .bow { display: none; } .sd-nav { top: calc(var(--status-h) + 140px); } .sd-lilac { display: none; } }
