* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #f4f7fc; color: #0b1a33; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Microsoft YaHei', sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, .results-scroll:focus-visible { outline: 3px solid #8ec7ff; outline-offset: 3px; }
.calculator-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; flex-shrink: 0; min-height: 66px; padding: 10px 28px; background: #fff; border-bottom: 1px solid #e7edf5; }
.calculator-plan { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; color: #16803d; background: #eaf8ef; font-size: .8rem; font-weight: 500; }
.calculator-plan strong { font-size: .85rem; font-style: italic; font-weight: 800; }
.calculator-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.325rem; font-weight: 700; line-height: 1.4; }
.calculator-title-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #006acd; font: 700 1.7rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.calculator-open-link { display: inline-flex; align-items: center; gap: 6px; justify-self: end; color: #69798d; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.calculator-open-link:hover { color: #006acd; }
.calculator-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; padding: 32px 24px 16px; }
.calculator-wrapper { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; width: 100%; min-width: 0; }
.batch-card { width: 100%; max-width: 1160px; min-width: 0; padding: 26px; border: 1px solid #e5ebf3; border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(18,61,107,.06); }
.batch-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid #e7edf5; }
.section-kicker { display: block; margin-bottom: 7px; color: #8895a7; font-size: .75rem; }
.batch-intro h2 { margin: 0 0 8px; color: #315d8d; font-size: 1.4rem; font-weight: 700; }
.batch-intro p { margin: 0; color: #69798d; font-size: .85rem; line-height: 1.8; }
.local-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dcece4; border-radius: 9px; color: #648977; font-size: .73rem; background: #f5faf7; white-space: nowrap; }
.local-badge span { color: #5eae81; font-size: .5rem; }
.batch-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
.input-panel, .results-panel { min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 34px; margin-bottom: 12px; }
.panel-heading h3 { margin: 0; color: #315d8d; font-size: .95rem; font-weight: 600; }
.text-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.text-actions button { padding: 4px 0; border: 0; color: #6f849d; background: transparent; font-size: .73rem; }
.text-actions button:hover { color: #006acd; }
#batchInput { display: block; width: 100%; min-height: 344px; max-height: 650px; padding: 15px; resize: vertical; border: 1px solid #dce5f0; border-radius: 14px; background: #f8faff; color: #0b1a33; font: .87rem/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
#batchInput:focus, select:focus { outline: none; border-color: #006acd; box-shadow: 0 0 0 3px #e7f2ff; }
#batchInput::placeholder { color: #98a5b6; font-size: .8rem; }
.input-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: 9px; color: #96a3b5; font-size: .68rem; }
.input-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.input-options label { display: inline-flex; align-items: center; gap: 6px; color: #69798d; font-size: .74rem; cursor: pointer; }
.input-options input { margin: 0; accent-color: #006acd; }
.field-hint { margin: 11px 0 0; color: #96a3b5; font-size: .7rem; line-height: 1.8; }
.run-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid #dce5f0; border-radius: 10px; font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.button.primary { color: #fff; background: #006acd; border-color: #006acd; }
.button.primary:hover:not(:disabled) { background: #0059b3; }
.button.secondary { color: #536f8b; background: #fff; }
.button.secondary:hover:not(:disabled) { color: #006acd; border-color: #bfd6ec; background: #eef4fe; }
.shortcut-hint { color: #96a3b5; font-size: .68rem; }
.results-panel { padding: 18px; border: 1px solid #d2dce9; border-radius: 18px; background: transparent; }
.results-heading { align-items: start; gap: 14px; }
.results-heading p { margin: 8px 0 0; color: #96a3b5; font-size: .68rem; line-height: 1.8; }
.result-count { margin-left: 7px; color: #96a3b5; font-size: .7rem; font-weight: 400; }
.format-field { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.format-field label { color: #8895a7; font-size: .7rem; }
.format-field select { height: 32px; max-width: 100%; padding: 4px 24px 4px 8px; border: 1px solid #dce5f0; border-radius: 8px; color: #315d8d; background: #fff; font-size: .73rem; }
.result-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 333px; padding: 25px 16px; border: 1px dashed #d9e2ef; border-radius: 12px; background: #f8faff; text-align: center; }
.result-empty > span { margin-bottom: 15px; color: #a7bed7; font: 2.6rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.result-empty h4 { margin: 0 0 9px; color: #6e85a0; font-size: .95rem; font-weight: 500; }
.result-empty p { margin: 0; color: #96a3b5; font-size: .75rem; line-height: 1.8; }
.results-scroll { min-height: 333px; max-height: 418px; overflow: auto; border: 1px solid #e2e9f3; border-radius: 12px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9cadf #f4f7fc; }
.results-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; text-align: left; }
.line-column { width: 45px; } .text-column { width: auto; } .hash-column { width: 266px; } .copy-column { width: 44px; }
.results-table th { position: sticky; top: 0; z-index: 1; padding: 11px 8px; border-bottom: 1px solid #dfe8f4; color: #7990a8; background: #f2f6fc; font-size: .7rem; font-weight: 500; }
.results-table td { padding: 11px 8px; border-bottom: 1px solid #edf1f7; color: #69798d; font-size: .73rem; vertical-align: middle; }
.results-table tr:last-child td { border-bottom: 0; }
.results-table tr:nth-child(even) { background: #fbfcff; }
.source-line { color: #96a3b5 !important; font-variant-numeric: tabular-nums; }
.source-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.source-preview.is-empty { color: #a0adbd; font-style: italic; }
.hash-value { color: #315d8d; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; user-select: all; }
.copy-row { width: 29px; height: 29px; padding: 0; border: 1px solid #e2e9f3; border-radius: 7px; background: #fff; color: #7290af; font-size: 16px; }
.copy-row:hover { border-color: #b7d5f2; color: #006acd; }
.result-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.result-pager span { color: #96a3b5; font-size: .68rem; }
.page-button { min-height: 29px; padding: 5px 9px; border: 1px solid #dce5f0; border-radius: 7px; color: #6f849d; background: #fff; font-size: .68rem; }
.export-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.export-actions .button { min-height: 34px; padding: 7px 11px; font-size: .73rem; border-radius: 8px; }
.result-hint { color: #96a3b5; font-size: .65rem; line-height: 1.8; }
.progress-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 21px; }
.progress-wrap progress { width: 200px; max-width: 100%; height: 7px; accent-color: #006acd; }
.progress-wrap span { color: #8895a7; font-size: .73rem; }
.batch-status { min-height: 21px; margin: 20px 0 0; color: #69798d; font-size: .78rem; line-height: 1.9; }
.batch-status.is-error { color: #b74646; }
.calculator-tips { flex-shrink: 0; width: 100%; max-width: 1160px; margin-top: auto; padding: 20px 4px 0; border-top: 1px solid #dfe7f1; color: #66758a; font-size: .78rem; line-height: 1.9; text-align: left; }
.calculator-tips h2 { margin: 0 0 12px; color: #315d8d; font-size: .9rem; font-weight: 600; }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tips-grid p { margin: 0; }
.tips-grid strong { display: block; margin-bottom: 4px; color: #536277; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) { .batch-layout { grid-template-columns: 1fr; gap: 25px; } #batchInput { min-height: 230px; } .result-empty { min-height: 230px; } .tips-grid { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 767.98px) { .calculator-header { padding: 8px 16px; gap: 10px; } .calculator-plan { padding: 5px 8px; font-size: .72rem; } .calculator-title { gap: 7px; font-size: 1.175rem; } .calculator-open-link { font-size: .8rem; } .calculator-main { padding: 24px 16px 16px; } .batch-card { padding: 22px; } }
@media (max-width: 575.98px) { .calculator-header { grid-template-columns: minmax(0, 1fr) auto; } .calculator-title { grid-column: 1 / -1; grid-row: 1; } .calculator-plan { grid-column: 1; grid-row: 2; } .calculator-open-link { grid-column: 2; grid-row: 2; } .calculator-main { padding: 20px 12px 16px; } .batch-card { padding: 20px 14px; border-radius: 22px; } .batch-intro { gap: 12px; margin-bottom: 18px; padding-bottom: 18px; } .batch-intro h2 { font-size: 1.2rem; } .batch-intro p { font-size: .78rem; } .local-badge { font-size: .68rem; } #batchInput { min-height: 225px; padding: 12px; } .input-options { gap: 10px 12px; } .input-options label { font-size: .7rem; } .results-panel { padding: 14px 11px; border-radius: 16px; } .results-heading { gap: 10px; } .result-empty { min-height: 220px; } .results-scroll { min-height: 230px; } .result-hint { width: 100%; } .shortcut-hint { font-size: .63rem; } }
