.bcg-wrap{width:100%;margin:0 auto;padding:4px 0 20px}
.bcg-card{background:#fff;border:1px solid #e3e6ea;border-radius:12px;box-shadow:0 8px 24px rgba(15,23,42,.06);padding:20px;margin-bottom:16px}
.bcg-card h3{margin:0 0 14px;font-size:16px;color:#1f2937;font-weight:600;padding-left:10px;border-left:4px solid #ff6500}
.bcg-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.bcg-label{font-size:13px;color:#6b7280;min-width:70px}
.bcg-chip{display:inline-block;padding:6px 14px;border-radius:18px;border:1px solid #d3d9e2;background:#fff;color:#4b5563;font-size:13px;cursor:pointer;transition:.2s;user-select:none}
.bcg-chip:hover{border-color:#ff6500;color:#ff6500}
.bcg-chip.act{background:linear-gradient(135deg,#ff6500,#ff8627);border-color:transparent;color:#fff}
.bcg-input{width:70px;padding:7px 10px;border:1px solid #d3d9e2;border-radius:8px;font-size:13px;background:#fff;color:#333}
select.bcg-input{width:auto;padding-right:22px}
input[type=color].bcg-input{padding:2px;width:44px;height:32px;cursor:pointer}
.bcg-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 4px}
.bcg-btn{border-radius:8px;padding:10px 22px;font-size:14px;cursor:pointer;border:1px solid #d3d9e2;background:#fff;color:#333;transition:.2s;font-weight:500;display:inline-flex;align-items:center;gap:6px}
.bcg-btn:hover{border-color:#ff6500;color:#ff6500}
.bcg-btn-primary{background:linear-gradient(135deg,#ff6500,#ff8627);border-color:transparent;color:#fff}
.bcg-btn-primary:hover{opacity:.92;color:#fff;border-color:transparent}
.bcg-tip{font-size:12px;color:#999;margin-top:10px;line-height:1.8}
.bcg-sheet-wrap{overflow-x:auto}
.bcg-sheet{width:794px;max-width:100%;margin:0 auto;background:#fff;padding:26px 30px;box-sizing:border-box}
.bcg-title{margin:0 0 16px;font-weight:600;line-height:1.3;font-family:KaiTi,'Kaiti SC',STKaiti,'楷体',serif;letter-spacing:2px}
.bcg-head{display:flex;justify-content:space-between;font-size:13px;color:#555;margin:0 0 14px;flex-wrap:wrap;gap:6px}
.bcg-head b{font-weight:500;color:#333}
.bcg-underline{display:inline-block;min-width:90px;border-bottom:1px solid #999;height:14px}
.bcg-page{margin-bottom:10px}
.bcg-grid{display:flex;flex-direction:column;gap:6px}
.bcg-line{display:flex;gap:4px}
.bcg-cell{position:relative;flex:1;display:flex;align-items:center;justify-content:center}
.bcg-cell svg,.bcg-linecell svg,.bcg-py svg,.bcg-staff svg{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.bcg-linecell{position:relative;height:var(--bcg-lh);display:flex;align-items:flex-end;border-bottom:1px solid var(--bcg-lc,#ccc)}
.bcg-linecell.dash{border-bottom-style:dashed}
.bcg-linecell span{position:relative;z-index:1;margin-left:6px;font-size:11px;color:#bbb}
.bcg-py{height:26px;position:relative}
.bcg-staff{position:relative;height:var(--bcg-lh);margin-bottom:10px}
.bcg-blank{height:var(--bcg-lh);border-bottom:1px solid var(--bcg-lc)}
.bcg-blank.dash{border-bottom-style:dashed}
.night .bcg-card{background:#222630;border-color:#3a3f48;box-shadow:none}
.night .bcg-card h3{color:#e6e8eb}
.night .bcg-label{color:#9aa2ad}
.night .bcg-chip{background:#2b2f36;border-color:#3a3f48;color:#c4cad2}
.night .bcg-chip:hover{border-color:#ff8627;color:#ff8627}
.night .bcg-chip.act{background:linear-gradient(135deg,#ff6500,#ff8627);color:#fff;border-color:transparent}
.night .bcg-input{background:#1a1d24;border-color:#3a3f48;color:#e6e8eb}
.night .bcg-btn{background:#2b2f36;border-color:#3a3f48;color:#e6e8eb}
.night .bcg-btn:hover{border-color:#ff8627;color:#ff8627}
.night .bcg-btn-primary{background:linear-gradient(135deg,#ff6500,#ff8627);color:#fff}
.night .bcg-sheet{background:#222630}
.night .bcg-head{color:#a8b0ba}
.night .bcg-head b{color:#d5dae0}
.night .bcg-underline{border-bottom-color:#6a7078}
@media (max-width:768px){
  .bcg-label{min-width:100%}
  .bcg-actions .bcg-btn{flex:1 1 calc(50% - 5px);justify-content:center;padding:10px 8px}
  .bcg-sheet{padding:16px 10px}
}
@media print{
  body *{visibility:hidden}
  .main,.center,.tools,.tools-cent,.bcg-wrap,.bcg-card,.bcg-sheet-wrap{position:static!important}
  .bcg-sheet,.bcg-sheet *{visibility:visible}
  .bcg-sheet{position:absolute;left:0;top:0;width:100%;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .bcg-page{break-after:page}
}
