/* 支票填写助手 —— 站内工具样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.check-tool-page {
    background: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.check-tool-page .container {
    max-width: 1300px;
    padding-bottom: 0;
}

.check-tool-page .card {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: none;
}

.check-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.check-layout .check-card,
.check-layout .check-result-card {
    margin-bottom: 0;
}

.check-layout .check-form-grid {
    grid-template-columns: 1fr;
}

.check-layout .check-field-full {
    grid-column: auto;
}

.check-tool-page .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.check-tool-page .section-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.check-tool-page .section-header p {
    margin: 0;
    color: #666666;
    font-size: 13px;
}

.check-layout .check-card .section-header {
    display: block;
}

.check-layout .check-card .section-header > div:first-child {
    width: 100%;
}

.check-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.check-subtitle-row p {
    min-width: 0;
}

.check-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    flex: none;
}

.check-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #777777;
    font: inherit;
    font-size: 12.5px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.check-action-blue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1d4ed8;
    text-decoration: none;
}

.check-action-blue:hover {
    color: #1e40af;
    text-decoration: underline;
}

.check-action-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.check-action-icon svg {
    width: 100%;
    height: 100%;
}

.check-action:hover {
    color: #111111;
}

.check-action:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.check-btn-sm {
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
}

.check-result-card .check-btn-sm {
    gap: 5px;
    padding: 0 9px;
    font-size: 12px;
    white-space: nowrap;
}

.check-result-card .check-btn-sm:disabled {
    border: 1px solid #e5e7eb;
}

.check-result-card .check-btn-sm > svg,
.check-result-card .check-btn-sm .check-action-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.check-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.check-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
}

.check-field-full {
    grid-column: 1 / -1;
}

.check-field label {
    color: #333333;
    font-size: 13px;
    font-weight: 600;
}

.check-required {
    color: #c53030;
    margin-left: 2px;
}

.check-field input[type="text"],
.check-field input[type="date"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d8dde6;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.check-field input[type="date"] {
    cursor: pointer;
}

.check-field input[type="text"]:focus,
.check-field input[type="date"]:focus {
    border-color: #111111;
    outline: 1px solid #111111;
    outline-offset: 0;
    box-shadow: none;
}

.check-field input::placeholder {
    color: #999999;
}

.check-amount-box {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #d8dde6;
    background: #ffffff;
}

.check-amount-box:focus-within {
    border-color: #111111;
    outline: 1px solid #111111;
    outline-offset: 0;
    box-shadow: none;
}

.check-amount-box.is-error {
    border-color: #c53030;
}

.check-currency {
    color: #777777;
    font-size: 20px;
    line-height: 1;
}

body.check-tool-page .check-amount-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 0 0 6px;
    border: 0;
    outline: none;
    background: transparent;
    color: #111111;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

body.check-tool-page .check-amount-box input[type="text"]:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.check-date-meta {
    margin: 0;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}

.check-date-meta:empty {
    display: none;
}

.check-msg {
    margin: 0;
    color: #c53030;
    font-size: 12px;
    line-height: 1.5;
}

.check-msg[hidden] {
    display: none;
}

.check-global-actions {
    display: flex;
    flex: none;
    gap: 16px;
}

.check-group {
    padding: 16px;
    border: 0;
    background: #fafafa;
    box-shadow: none;
}

.check-group + .check-group {
    margin-top: 16px;
}

.check-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding-top: 0;
    border-top: 0;
}

.check-subhead h3 {
    flex: 0 0 auto;
    margin: 0;
    color: #666666;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.check-subhead .check-actions {
    flex: 0 0 auto;
    gap: 16px;
}

.check-result-card {
    overflow: visible;
}

.check-pane + .check-pane {
    margin-top: 18px;
}

.check-face-wrap {
    padding: 10px;
    border: 0;
    background: #eff6ff;
    cursor: zoom-in;
}

.check-face-wrap:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.check-face {
    position: relative;
    width: 100%;
    aspect-ratio: 2284 / 909;
    overflow: hidden;
    background: #fdfdfb;
    user-select: none;
}

.check-face-back {
    aspect-ratio: 2115 / 746;
}

.check-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.check-slot {
    position: absolute;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    overflow: hidden;
    white-space: nowrap;
}

.check-ink {
    display: inline-block;
    font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "AR PL UKai CN", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Sans CJK SC", "WenQuanYi Zen Hei", "Songti SC", "SimSun", serif;
    font-weight: 600;
    line-height: 1;
    color: #b3261e;
    letter-spacing: 0.03em;
    text-shadow:
        0 0 0.05em rgba(255, 255, 255, 1),
        0 0 0.11em rgba(255, 255, 255, 0.95),
        0 0 0.19em rgba(255, 255, 255, 0.7);
    -webkit-text-stroke: 0.016em #b3261e;
    paint-order: stroke fill;
}

.check-ink:empty {
    display: none;
}

.check-slot-year { left: 21.30%; width: 10.80%; top: 26.50%; justify-content: flex-end; padding-right: 0.35%; }
.check-slot-month { left: 34.45%; width: 8.11%; top: 26.50%; justify-content: flex-end; padding-right: 0.35%; }
.check-slot-day { left: 44.47%; width: 7.81%; top: 26.50%; justify-content: flex-end; padding-right: 0.35%; }
.check-slot-payee { left: 13.33%; width: 44.55%; top: 34.54%; justify-content: flex-start; }
.check-slot-bank { left: 72.20%; width: 25.23%; top: 26.50%; justify-content: flex-start; }
.check-slot-account { left: 72.20%; width: 25.23%; top: 34.54%; justify-content: flex-start; }
.check-slot-purpose { left: 10.52%; width: 27.03%; top: 63.20%; justify-content: flex-start; }
.check-slot-upper { left: 15.00%; width: 54.60%; top: 47.20%; justify-content: flex-start; }
.check-slot-bpayee { left: 43%; width: 34.5%; top: 54%; justify-content: flex-end; padding-right: 0.6%; }

.check-slot-cells {
    left: 71.45%;
    width: 27.61%;
    top: 46.10%;
    height: 8.40%;
    transform: none;
}

.check-slot-idcells {
    left: 50.61%;
    width: 41.23%;
    top: 83.9%;
    height: 13.6%;
    transform: none;
}

.check-cell-strip {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    width: 100%;
    height: 100%;
}

.check-cell-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "AR PL UKai CN", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Sans CJK SC", "WenQuanYi Zen Hei", "Songti SC", "SimSun", serif;
    font-weight: 600;
    color: #b3261e;
    line-height: 1;
}

.check-id-strip {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    width: 100%;
    height: 100%;
}

.check-id-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "AR PL UKai CN", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Sans CJK SC", "WenQuanYi Zen Hei", "Songti SC", "SimSun", serif;
    font-weight: 600;
    color: #b3261e;
    line-height: 1;
}

.check-noscript {
    padding: 20px;
    color: #666666;
}

/* 大图 */
.check-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: rgba(14, 22, 32, 0.9);
}

.check-lightbox[hidden] {
    display: none;
}

.check-lightbox-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 4px 12px;
}

.check-lightbox-tabs {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.check-lightbox-tabs button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #d4d4d4;
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

.check-lightbox-tabs button[aria-pressed="true"] {
    border-color: #ffffff;
    background: #ffffff;
    color: #111111;
}

.check-lightbox-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.check-lightbox-body {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.check-lightbox-body .check-face {
    width: min(1600px, 96vw);
    height: auto;
    flex: none;
    box-shadow: none;
}

.check-lightbox-body .check-cell-strip span {
    font-size: 1.55vmin;
}

@media (max-width: 1000px) {
    .check-layout {
        grid-template-columns: 1fr;
    }

    .check-layout .check-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .check-tool-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .check-tool-page .card {
        padding: 18px 16px;
    }

    .check-tool-page .check-result-card .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .check-tool-page .check-result-card .section-header .check-actions {
        width: 100%;
    }

    .check-tool-page .check-result-card .section-header .check-btn-sm {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .check-subhead {
        flex-wrap: nowrap;
    }

    .check-subhead h3 {
        white-space: nowrap;
    }

    .check-subhead .check-actions {
        width: auto;
        margin-left: auto;
        flex: none;
    }

    .check-layout .check-form-grid {
        grid-template-columns: 1fr;
    }

    .check-field-full {
        grid-column: auto;
    }

    .check-amount-box input {
        font-size: 20px;
    }

    .check-field input[type="text"],
    .check-field input[type="date"] {
        font-size: 16px;
        min-height: 44px;
    }

    .check-field input[type="date"] {
        padding-right: 30px;
    }

    .check-field input[type="date"]::-webkit-calendar-picker-indicator {
        margin-right: 4px;
    }

    .check-face-wrap {
        padding: 6px;
    }

    .check-lightbox {
        padding: 8px;
    }
}



/* The check tool uses a completely flat surface treatment. */
.check-tool-page .site-nav__panel,
.check-tool-page .site-nav__lang-menu,
.check-tool-page .site-search__dialog,
.check-tool-page .faq-scroll-hint {
    box-shadow: none;
}
