@page{size:A4;margin:0}.arithmetic-cards-app *{box-sizing:border-box;margin:0;padding:0}.arithmetic-cards-app{print-color-adjust:exact;font-family:Noto Sans SC,Microsoft YaHei,PingFang SC,sans-serif}.arithmetic-cards-app .sheet{page-break-after:always;background:#fff;flex-direction:column;width:210mm;height:297mm;display:flex;position:relative;overflow:hidden}.arithmetic-cards-app .sheet:last-child{page-break-after:auto}.arithmetic-cards-app .sheet:before{content:"";pointer-events:none;z-index:1;border:.2mm dashed #6366f14d;position:absolute;inset:10mm}.arithmetic-cards-app .cut-line{pointer-events:none;z-index:1;position:absolute}.arithmetic-cards-app .cut-v{border-left:.15mm dashed #94a3b866;width:0;top:10mm;bottom:10mm;left:105mm}.arithmetic-cards-app .cut-h{border-top:.15mm dashed #94a3b866;height:0;left:10mm;right:10mm}.arithmetic-cards-app .grid{flex:1;grid-template-rows:repeat(4,1fr);grid-template-columns:1fr 1fr;display:grid}.arithmetic-cards-app .card{flex-direction:column;justify-content:center;align-items:center;padding:4mm 6mm;display:flex;position:relative;overflow:hidden}.arithmetic-cards-app .card.add{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%)}.arithmetic-cards-app .card.add .badge{background:#3b82f6}.arithmetic-cards-app .card.add .method-name{color:#1e40af;background:#3b82f626}.arithmetic-cards-app .card.add .steps .arrow{color:#6366f1}.arithmetic-cards-app .card.add .decomp-svg .line{stroke:#6366f1}.arithmetic-cards-app .card.add .decomp-svg .brace-label{fill:#6366f1}.arithmetic-cards-app .card.sub{background:linear-gradient(135deg,#fff7ed 0%,#fed7aa 100%)}.arithmetic-cards-app .card.sub .badge{background:#f97316}.arithmetic-cards-app .card.sub .method-name{color:#9a3412;background:#f9731626}.arithmetic-cards-app .card.sub .steps .arrow{color:#ea580c}.arithmetic-cards-app .card.sub .decomp-svg .line{stroke:#ea580c}.arithmetic-cards-app .card.sub .decomp-svg .brace-label{fill:#ea580c}.arithmetic-cards-app .card-front .expression{letter-spacing:1mm;color:#1e293b;text-align:center;font-size:16mm;font-weight:900;line-height:1.2}.arithmetic-cards-app .card-front .badge,.arithmetic-cards-app .card-back .badge{color:#fff;border-radius:2mm;font-weight:700;position:absolute;top:3mm;left:3mm}.arithmetic-cards-app .card-front .badge{padding:.8mm 2mm;font-size:3.2mm}.arithmetic-cards-app .card-front .card-id{color:#64748b;font-size:3mm;font-weight:600;position:absolute;top:3mm;right:3mm}.arithmetic-cards-app .card-front .hint{color:#94a3b8;margin-top:2mm;font-size:3mm}.arithmetic-cards-app .card-back .badge{padding:.6mm 1.8mm;font-size:2.8mm}.arithmetic-cards-app .card-back .answer{color:#1e293b;font-size:3.5mm;font-weight:800;position:absolute;top:3mm;right:3mm}.arithmetic-cards-app .card-back .formula{text-align:center;color:#1e293b;margin-bottom:2mm;font-size:5mm;font-weight:800}.arithmetic-cards-app .card-back .method-name{text-align:center;border-radius:1.5mm;margin-bottom:2mm;padding:.5mm 0;font-size:3.2mm;font-weight:700}.arithmetic-cards-app .card-back .decomp-svg{flex:1;justify-content:center;align-items:center;width:100%;min-height:22mm;display:flex}.arithmetic-cards-app .card-back .steps{text-align:center;color:#475569;margin-top:1mm;font-size:2.8mm;line-height:1.5}.arithmetic-cards-app .card-back .steps .arrow{font-weight:700}.arithmetic-cards-app .decomp-svg text{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-weight:700}.arithmetic-cards-app .decomp-svg .num-big{font-size:5mm}.arithmetic-cards-app .decomp-svg .num-small{fill:#64748b;font-size:3.5mm}.arithmetic-cards-app .decomp-svg .num-result{fill:#059669;font-size:4.5mm;font-weight:900}.arithmetic-cards-app .decomp-svg .op{fill:#94a3b8;font-size:3.5mm}.arithmetic-cards-app .decomp-svg .line{stroke-width:.5px;fill:none}.arithmetic-cards-app .decomp-svg .brace-label{font-size:3mm;font-weight:700}.arithmetic-cards-app .sheet-label{color:#cbd5e1;z-index:2;letter-spacing:.5mm;font-size:2.5mm;position:absolute;bottom:3mm;left:50%;transform:translate(-50%)}@media screen{.arithmetic-cards-app{background:#e2e8f0;padding:20px}.arithmetic-cards-app .sheet{margin:0 auto 20px;box-shadow:0 4px 24px #00000026}}
