/* 打熊伤害高分计算器（完整版） */
#bearCalc-app { max-width: 720px; margin: 0 auto; font-size: 14px; color: #222; }
#bearCalc-app * { box-sizing: border-box; }

.bear-loading { color: #0680f1; font-size: 14px; padding: 12px 0; }

/* Tabs */
.bear-tabs { display: flex; border: 1px solid #0276ff; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.bear-tab { flex: 1; text-align: center; line-height: 40px; font-weight: 700; color: #2260b4; cursor: pointer; user-select: none; }
.bear-tab.on { background: #0276ff; color: #fff; }

/* 区块 */
.bear-block { background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.bear-sec { font-size: 14px; font-weight: 700; color: #0a2d5c; margin-bottom: 6px; }
.bear-sec.skip { margin-top: 12px; color: #b06a00; }
.bear-muted { color: #667; font-size: 12.5px; line-height: 1.65; }
.bear-muted.hint { margin-top: 4px; }
.bear-total { color: #045dca; font-weight: 800; margin: 8px 0 10px; font-size: 15px; }

/* 模式 */
.bear-mode { display: flex; border: 1px solid #0276ff; border-radius: 8px; overflow: hidden; margin: 8px 0 12px; }
.bear-mode-btn { flex: 1; text-align: center; line-height: 36px; font-weight: 700; color: #2260b4; cursor: pointer; user-select: none; }
.bear-mode-btn.on { background: #0276ff; color: #fff; }

/* 兵种 */
.bear-troop { border-top: 1px solid #eef2f8; margin-top: 12px; padding-top: 10px; }
.bear-troop-name { font-weight: 800; color: #0a2d5c; margin-bottom: 6px; }

/* 字段 */
.bear-field { display: flex; align-items: center; margin: 9px 0; }
.bear-lab { flex: 0 0 34%; color: #333; font-size: 13.5px; padding-right: 8px; }
.bear-num, .bear-pick, .bear-stepper { flex: 1; background: #ebebeb; border: 1px solid #dfe6f0; border-radius: 8px; color: #045dca; min-height: 36px; line-height: 34px; padding: 0 10px; font-size: 14px; }
.bear-num { width: 100%; font-weight: 600; }
.bear-pick { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8aa0c0 50%), linear-gradient(135deg, #8aa0c0 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.bear-two { display: flex; gap: 10px; }
.bear-two .bear-field { flex: 1; margin: 6px 0; }
.bear-two .bear-lab { flex: 0 0 auto; width: auto; margin-right: 6px; }

/* stepper */
.bear-stepper { display: flex; align-items: center; padding: 0 4px; }
.bear-stepper.dim { color: #999; opacity: .7; }
.bear-step-btn { flex: 0 0 34px; text-align: center; color: #0276ff; font-size: 20px; font-weight: 800; cursor: pointer; user-select: none; line-height: 34px; }
.bear-stepper.dim .bear-step-btn { color: #aaa; }
.bear-step-val { flex: 1; text-align: center; font-weight: 700; color: #045dca; }

/* 折叠 */
.bear-fold { border-top: 1px solid #eef2f8; }
.bear-fold:first-child { border-top: 0; }
.bear-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.bear-fold > summary::-webkit-details-marker { display: none; }
.bear-fold-tag { color: #0680f1; font-size: 12.5px; }
.bear-fold-body { padding: 4px 0 10px; }

/* 预设按钮 */
.bear-presets { display: flex; gap: 8px; margin: 6px 0 10px; flex-wrap: wrap; }
.bear-preset { border: 1px solid #0276ff; color: #2260b4; border-radius: 20px; padding: 4px 14px; font-size: 13px; cursor: pointer; user-select: none; }
.bear-preset:hover { background: #eaf2ff; }

/* 计算按钮 */
.bear-action { margin: 16px 0 6px; }
.bear-calc-btn { background: #0276ff; color: #fff; text-align: center; line-height: 46px; border-radius: 10px; font-weight: 800; font-size: 16px; cursor: pointer; user-select: none; }
.bear-calc-btn.small { line-height: 38px; font-size: 14px; display: inline-block; padding: 0 20px; }
.bear-calc-btn:active { background: #0160d4; }

.bear-foot { color: #889; font-size: 12px; line-height: 1.6; margin: 10px 2px 4px; }

/* 结果 */
.bear-hero { text-align: center; padding: 6px 0 10px; border-bottom: 1px dashed #e6ebf2; margin-bottom: 10px; }
.bear-hero-n { font-size: 30px; font-weight: 800; color: #045dca; margin: 4px 0; }
.bear-interval { color: #b06a00; font-weight: 700; margin: 4px 0; }
.bear-roll { margin-top: 10px; }
.bear-strong { font-weight: 800; color: #045dca; }
.bear-metric { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f4f9; font-size: 14px; }
.bear-metric:last-child { border-bottom: 0; }
.bear-round { padding: 8px 0; border-bottom: 1px solid #f1f4f9; font-size: 13.5px; line-height: 1.7; }
.bear-alert { background: #fff7e6; border: 1px solid #ffe1a8; color: #a86a00; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.bear-skill-ok { color: #1a7f37; font-size: 13.5px; line-height: 1.7; }
.bear-skill-skip { color: #8a6d00; font-size: 13.5px; line-height: 1.7; margin-bottom: 4px; }
