/* num2cjk 数字转国字大写工具页样式（工作台双栏 + 支票票样，自包含不依赖全站 utility）
   来源: uidemo v4 定稿（2026-09-10 用户确认），dx- 前缀防全站冲突。 */

.dx-page { min-height: 100vh; background: #f6f7f9; padding: 24px 0 48px; }
.dx-layout { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.dx-crumb { font-size: 13px; color: #6b7280; margin-bottom: 14px; }
.dx-crumb a { color: #6b7280; text-decoration: none; }
.dx-crumb a:hover { color: #2563eb; }
.dx-crumb-sep { margin: 0 8px; color: #c3c8d0; }

.dx-titlebox { margin-bottom: 18px; }
.dx-titlebox h1 { font-size: 26px; font-weight: 700; color: #1f2937; margin: 0 0 8px; }
.dx-titlebox p { font-size: 14.5px; color: #6b7280; line-height: 1.7; margin: 0; max-width: 640px; }

.dx-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.dx-tabs { display: flex; border-bottom: 1px solid #eef0f3; background: #fafbfc; }
.dx-tab {
    flex: 1; padding: 12px 8px; border: 0; background: transparent; color: #6b7280;
    font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s;
}
.dx-tab.dx-on { color: #2563eb; border-bottom-color: #2563eb; background: #fff; }

.dx-body { padding: 20px; }
.dx-field-label { display: block; font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 8px; }
.dx-row {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid #d1d5db; border-radius: 12px; padding: 2px 14px 2px 16px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.dx-row:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.dx-currency { font-size: 20px; color: #6b7280; font-weight: 600; }
.dx-input {
    flex: 1; border: 0; outline: none; padding: 11px 0;
    font-size: 22px; font-weight: 600; color: #111827; font-family: inherit; min-width: 0;
}
.dx-input::placeholder { color: #c3c8d0; font-weight: 400; font-size: 16px; }

.dx-opts { display: flex; align-items: center; gap: 14px; margin-top: 10px; min-height: 20px; }
.dx-opt { font-size: 13px; color: #4b5563; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.dx-opt input { accent-color: #2563eb; width: 14px; height: 14px; }
.dx-err { font-size: 13px; color: #dc2626; }

.dx-result { margin-top: 14px; border: 1px solid #dbeafe; background: #f8faff; border-radius: 12px; padding: 12px 16px; }
.dx-result.dx-error { border-color: #fecaca; background: #fef2f2; }
.dx-result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dx-result-head > span { font-size: 13px; color: #6b7280; font-weight: 600; }
.dx-copy-mini {
    padding: 3px 12px; border-radius: 6px; border: 1px solid #d1d5db; background: #fff;
    color: #374151; font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.dx-copy-mini:hover { border-color: #2563eb; color: #2563eb; }
.dx-copy-mini.dx-copied { background: #059669; border-color: #059669; color: #fff; }
.dx-result-text { font-size: 20px; line-height: 1.6; color: #1e3a8a; font-weight: 700; word-break: break-all; min-height: 32px; }
.dx-result.dx-empty .dx-result-text { color: #c3c8d0; font-weight: 400; }

.dx-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dx-btn {
    padding: 7px 16px; border-radius: 8px; border: 1px solid #d1d5db;
    background: #fff; color: #374151; font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.dx-btn:hover { border-color: #9ca3af; }
.dx-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #9ca3af; }
.dx-chip {
    padding: 4px 12px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff;
    color: #374151; font-size: 13px; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    transition: all .15s;
}
.dx-chip:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

.dx-doc { margin-top: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.dx-doc h3 { font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 12px; }
.dx-doc p { font-size: 14px; color: #4b5563; line-height: 1.8; margin: 0 0 10px; }
.dx-doc p b { color: #1f2937; }
.dx-doc ul, .dx-doc ol { margin: 0 0 10px; padding-left: 20px; }
.dx-doc li { font-size: 14px; color: #4b5563; line-height: 1.8; }
.dx-doc h2 { font-size: 19px; font-weight: 700; color: #1f2937; margin: 22px 0 10px; }
.dx-doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0 14px; }
.dx-doc th { background: #f9fafb; color: #6b7280; font-weight: 600; padding: 7px 10px; border: 1px solid #eef0f3; text-align: left; }
.dx-doc td { padding: 7px 10px; border: 1px solid #eef0f3; color: #374151; }
.dx-doc blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid #bfdbfe; background: #f8faff; color: #4b5563; font-size: 13.5px; line-height: 1.75; }

.dx-faqbox { margin-top: 24px; }
.dx-faqbox h3 { font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 12px; }
.dx-faq { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 0 18px; margin-bottom: 10px; }
.dx-faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: #1f2937; padding: 13px 0; }
.dx-faq p { font-size: 14px; color: #6b7280; line-height: 1.75; margin: 0; padding: 0 0 13px; }

.dx-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dx-col-main { min-width: 0; }
.dx-widget { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; }
.dx-widget-title { font-size: 14.5px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }
.dx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dx-col-side .dx-table { table-layout: fixed; }
.dx-table th { background: #f9fafb; color: #6b7280; font-weight: 600; padding: 7px 4px; border: 1px solid #eef0f3; text-align: center; }
.dx-table td { padding: 7px 4px; text-align: center; border: 1px solid #eef0f3; color: #1f2937; font-weight: 600; }
.dx-widget-sub { font-size: 12.5px; color: #9ca3af; margin: 10px 0 0; }

.dx-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dx-side-list li { display: flex; gap: 12px; align-items: flex-start; }
.dx-side-ico {
    flex: none; width: 30px; height: 30px; border-radius: 8px; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4338ca;
}
.dx-ico1 { background: #ecfdf5; color: #047857; }
.dx-ico2 { background: #eff6ff; color: #1d4ed8; }
.dx-ico3 { background: #fef3c7; color: #b45309; }
.dx-ico4 { background: #fdf2f8; color: #be185d; }
.dx-side-list b { display: block; font-size: 13.5px; color: #1f2937; }
.dx-side-list span { display: block; font-size: 12.5px; color: #9ca3af; margin-top: 2px; }
.dx-side-list code {
    display: inline-block; margin-top: 4px; font-size: 11.5px; color: #4338ca;
    background: #f5f6fa; border-radius: 4px; padding: 2px 6px; word-break: break-all;
}

.dx-tool-link { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px 0; }
.dx-tool-link + .dx-tool-link { border-top: 1px solid #f3f4f6; }
.dx-tool-ico {
    flex: none; width: 34px; height: 34px; border-radius: 9px; background: #e0e7ff; color: #3730a3;
    font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.dx-tool-ico-all { background: #f3f4f6; color: #6b7280; }
.dx-tool-link b { display: block; font-size: 14px; color: #1f2937; }
.dx-tool-link span { display: block; font-size: 12.5px; color: #9ca3af; margin-top: 1px; }
.dx-tool-link:hover b { color: #2563eb; }

.dx-widget-priv { background: #f0fdf4; border-color: #bbf7d0; }
.dx-widget-priv b { font-size: 13.5px; color: #166534; }
.dx-widget-priv p { font-size: 13px; color: #15803d; line-height: 1.7; margin: 6px 0 0; }

/* ---- 票样模拟(结果区下方) ---- */
.dx-check { margin-top: 14px; background: #fffdf6; border: 2px solid #b45309; border-radius: 8px; padding: 5px; box-shadow: 0 2px 8px rgba(180,83,9,.10); position: relative; }
.dx-check::before {
    content: ''; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
    background:
        repeating-linear-gradient(45deg, rgba(180,83,9,.030) 0 2px, transparent 2px 6px),
        repeating-linear-gradient(-45deg, rgba(180,83,9,.030) 0 2px, transparent 2px 6px);
}
.dx-check-inner { border: 1px solid #d6a558; border-radius: 6px; padding: 14px 18px 10px; position: relative; }
.dx-check-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid #e7d5b0; padding-bottom: 8px; margin-bottom: 12px; }
.dx-check-bank { font-size: 15px; font-weight: 700; color: #92400e; letter-spacing: 1px; }
.dx-check-type {
    font-size: 12px; font-weight: 700; color: #b45309;
    border: 1.5px solid #b45309; border-radius: 3px; padding: 1px 7px; letter-spacing: 3px;
}
.dx-check-no { margin-left: auto; font-size: 11.5px; color: #a16207; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dx-check-date { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dx-check-amount { display: flex; align-items: baseline; gap: 6px; }
.dx-check-cap { font-size: 12px; color: #a16207; font-weight: 600; white-space: nowrap; }
.dx-cap-right { margin-left: auto; font-weight: 400; color: #c08a3e; }
.dx-check-word { font-size: 11px; color: #c08a3e; }
.dx-date-text {
    font-family: "KaiTi", "STKaiti", "Kaiti SC", serif;
    font-size: 17px; color: #1f2937; letter-spacing: 1.5px;
    border-bottom: 1px dashed #d6a558; padding: 0 5px 1px; min-width: 240px;
}
.dx-amount-text {
    font-family: "KaiTi", "STKaiti", "Kaiti SC", serif;
    font-size: 21px; font-weight: 700; color: #111827; letter-spacing: 1px; line-height: 1.5;
    border-bottom: 1px dashed #d6a558; padding: 0 5px 1px; flex: 1; word-break: break-all; min-height: 32px;
}
.dx-check-row2 { display: flex; align-items: flex-end; gap: 16px; margin-top: 12px; }
.dx-check-usage { display: flex; align-items: baseline; gap: 6px; flex: 1; }
.dx-usage-text {
    font-family: "KaiTi", "STKaiti", serif; font-size: 14px; color: #92400e;
    border-bottom: 1px solid #e7d5b0; padding: 0 4px 1px; min-width: 100px;
}
.dx-check-figure { display: flex; align-items: center; gap: 6px; }
.dx-figure-box {
    border: 1px solid #b45309; border-radius: 4px; padding: 3px 10px;
    font-size: 15px; color: #92400e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: rgba(255,255,255,.6);
}
.dx-figure-box b { font-size: 17px; }
.dx-check-foot {
    display: flex; justify-content: space-between; margin-top: 12px; padding-top: 7px;
    border-top: 1px solid #e7d5b0; font-size: 10.5px; color: #c08a3e;
}
.dx-check-dim-note {
    display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: rgba(255,253,246,.92); border: 1px solid #d6a558; border-radius: 999px;
    padding: 5px 14px; font-size: 12px; color: #92400e; white-space: nowrap; z-index: 2;
}
.dx-check.dx-dim .dx-check-inner { opacity: .35; }
.dx-check.dx-dim .dx-check-dim-note { display: block; }

@media (max-width: 560px) {
    .dx-check-inner { padding: 10px 10px 8px; }
    .dx-amount-text { font-size: 17px; }
    .dx-date-text { font-size: 14px; min-width: 150px; }
    .dx-check-row2 { flex-direction: column; align-items: stretch; gap: 8px; }
    .dx-figure-box { align-self: flex-end; }
}

@media (min-width: 960px) {
    .dx-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
