/* ================================================================
   菜刀客在线工具页 · qrcode-generator.html 私有样式
   需在 /css/common.css 之后加载。
   ================================================================ */

/* ---- 覆盖公共值：二维码信息卡数字略小 ---- */
.hero-result .amount {
    font-size: 26px;
}

/* ---- 表单增强：分栏输入行 ---- */
.form-row .split {
    flex: 1;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
    font-family: inherit;
}

/* ---- 颜色设置 ---- */
.color-row {
    display: flex;
    gap: 10px;
}

.color-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #fff;
}

.color-item:hover {
    border-color: #667eea;
}

.color-item input[type="color"] {
    width: 30px;
    height: 26px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0;
    background: none;
    cursor: pointer;
}

/* ---- 二维码预览 ---- */
.qr-preview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    min-height: 300px;
}

.qr-preview .qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.qr-preview .qr-box img,
.qr-preview .qr-box canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.qr-preview .qr-name {
    font-size: 13px;
    color: #6b7280;
    word-break: break-all;
    text-align: center;
    max-width: 100%;
}

.qr-tip {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}