/* 计算器（后台浮动按钮 + /calc.html） */
.sc-fab { position: fixed; right: 16px; bottom: 16px; z-index: 150; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #221a17; color: #fff; font-size: 24px; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; touch-action: none; opacity: .9; }
.sc-fab:hover { opacity: 1; }
.sc-calc-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; z-index: 300; }
@media (min-width: 641px) { .sc-calc-bg { align-items: center; } }
.sc-calc { background: #fff; color: #221a17; width: 100%; max-width: 360px; border-radius: 22px 22px 0 0; padding: 16px; box-shadow: 0 -10px 40px rgba(0,0,0,.2); font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
@media (min-width: 641px) { .sc-calc { border-radius: 22px; } }
.sc-calc-expr { min-height: 22px; text-align: right; color: #7d6e66; font-size: 16px; word-break: break-all; }
.sc-calc-res { text-align: right; font-size: 38px; font-weight: 900; margin-bottom: 10px; }
.sc-calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-k { height: 58px; border-radius: 14px; border: 0; background: #f3eee9; color: #221a17; font-size: 24px; font-weight: 700; cursor: pointer; }
.sc-k.op { background: #fff4d6; color: #b7791f; } .sc-k.fn { background: #efe8e3; color: #c8102e; } .sc-k.zero { grid-column: span 2; }
.sc-calc-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.sc-btn { border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 800; background: #c8102e; color: #fff; cursor: pointer; }
.sc-btn.ghost { background: #fff; color: #221a17; border: 1.5px solid #e4dcd7; }
/* /calc.html 整页 */
.sc-calc-bg.full { background: #221a17; align-items: center; }
.sc-calc-bg.full .sc-calc { max-width: 420px; border-radius: 22px; margin: 12px; }
.sc-calc-bg.full .sc-k { height: 68px; }
.sc-link { margin-right: auto; align-self: center; font-size: 13px; color: #7d6e66; }
