/* ================================================================
   菜刀客在线工具页 · qrcode-reader.html 私有样式
   需在 /css/common.css 之后加载。
   ================================================================ */

/* ---- 上传区 ---- */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 28px 16px;
    text-align: center;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s ease;
    background: #fafbff;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #667eea;
    background: #eef2ff;
    color: #4338ca;
}

.drop-zone .dz-icon {
    font-size: 38px;
    display: block;
    margin-bottom: 8px;
}

.drop-zone .dz-main {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.drop-zone .dz-sub {
    font-size: 12px;
    color: #9ca3af;
}

.drop-zone input[type="file"] {
    display: none;
}

/* ---- 预览 ---- */
.preview-box {
    margin-top: 14px;
}

.preview-box img {
    display: block;
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 auto 8px;
    background: repeating-conic-gradient(#f3f4f6 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.preview-box .preview-name {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
}

.preview-box .preview-size {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* ---- 结果区 ---- */
.decode-result {
    padding: 15px;
}

.hero-result .method {
    word-break: break-all;
}

.result-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

#resultContent {
    width: 100%;
    min-height: 200px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    word-break: break-all;
}

#resultContent:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.summary-list {
    margin-top: 14px;
}
