/* ToolCMS V3.1.82 (c) ToolWorld https://www.toolworld.cn/ */
*{box-sizing:border-box;margin:0;padding:0}
body{margin:0;padding:0;font-family:inherit;background:transparent;color:var(--text-1,#333);font-size:14px;line-height:1.6}
.file-hash-container{max-width:100%;margin:0 auto;padding:16px}
.file-hash-card{background:var(--bg-card,#fff);border:1px solid var(--border,#e2e8f0);border-radius:var(--radius,14px);padding:20px}
.file-hash-modebar{display:flex;gap:6px;background:var(--bg-soft,#f1f5f9);padding:4px;border-radius:var(--radius-sm,8px);width:fit-content}
.file-hash-mode{border:none;background:transparent;padding:7px 18px;border-radius:6px;cursor:pointer;font-size:13px;color:var(--text-2,#555);transition:background .15s,color .15s}
.file-hash-mode.active{background:var(--bg-card,#fff);color:var(--primary,var(--primary-hover));font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.file-hash-algos{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.file-hash-chip{display:flex;align-items:center;gap:6px;border:1px solid var(--border,#d1d5db);border-radius:999px;padding:5px 14px;font-size:13px;color:var(--text-2,#555);cursor:pointer;user-select:none}
.file-hash-chip input{accent-color:var(--primary,var(--primary-hover))}
.file-hash-drop{margin-top:14px;border:2px dashed var(--border,#d1d5db);border-radius:var(--radius-sm,8px);padding:26px 16px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.file-hash-drop:hover,.file-hash-drop.drag{border-color:var(--primary,var(--primary-hover));background:var(--primary-light)}
.file-hash-drop-icon{font-size:32px;margin-bottom:6px}
.file-hash-drop-text{font-size:14px;color:var(--text-1,#333)}
.file-hash-drop-sub{font-size:12px;color:var(--text-3,#94a3b8);margin-top:4px}
.file-hash-textpanel{display:none;margin-top:14px}
.file-hash-textpanel.show{display:block}
.file-hash-textarea{width:100%;height:120px;padding:10px 12px;border:1px solid var(--border,#d1d5db);border-radius:var(--radius-sm,8px);font-size:14px;font-family:inherit;background:var(--bg-card,#fff);color:var(--text-1,#333);outline:none;resize:vertical}
.file-hash-textarea:focus{border-color:var(--primary,var(--primary-hover))}
.file-hash-progress{display:none;margin-top:12px;height:6px;border-radius:999px;background:var(--bg-soft,#f1f5f9);overflow:hidden}
.file-hash-progress.show{display:block}
.file-hash-progress-bar{height:100%;width:0;background:var(--primary,var(--primary-hover));transition:width .2s}
.file-hash-result{display:none;margin-top:14px;border:1px solid var(--border,#e2e8f0);border-radius:var(--radius-sm,8px);overflow:hidden}
.file-hash-result.show{display:block}
.file-hash-hrow{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border-light,#eef2f7)}
.file-hash-hrow:last-child{border-bottom:none}
.file-hash-hlabel{flex:0 0 64px;font-size:12px;font-weight:700;color:var(--text-3,#94a3b8)}
.file-hash-hval{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--text-1,#333);word-break:break-all;line-height:1.5}
.file-hash-copyone{flex:none;border:1px solid var(--border,#d1d5db);background:var(--bg-card,#fff);color:var(--text-2,#555);border-radius:6px;padding:4px 10px;font-size:12px;cursor:pointer}
.file-hash-copyone:hover{background:var(--primary-light);color:var(--primary,var(--primary-hover))}
.file-hash-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.file-hash-btn{padding:8px 16px;border:1px solid var(--border,#d1d5db);border-radius:var(--radius-sm,8px);background:var(--bg-card,#fff);color:var(--text-1,#333);cursor:pointer;font-size:13px;transition:background .15s}
.file-hash-btn:hover{background:var(--primary-light)}

.file-hash-btn-primary{background:var(--primary,var(--primary-hover));color:#fff;border-color:var(--primary,var(--primary-hover))}
.file-hash-btn-primary:hover{background:var(--primary-light);color:var(--primary)}

.file-hash-message{margin-top:8px;padding:8px 12px;border-radius:var(--radius-sm,8px);font-size:13px;display:none}
.file-hash-message.show{display:block}
.file-hash-message.success{background:var(--primary-light);color:var(--primary,var(--primary-hover))}
.file-hash-message.error{background:var(--error-bg,#fee2e2);color:var(--error,#991b1b)}
.file-hash-footer{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid var(--border-light,#f1f5f9);font-size:12px;color:var(--text-3,#94a3b8)}
.file-hash-footer-right{margin-left:auto}
@media(max-width:640px){.file-hash-card{padding:16px}.file-hash-hrow{flex-wrap:wrap}.file-hash-btn{flex:1 1 auto}.file-hash-footer{flex-direction:column;gap:4px;text-align:center}}
