/* 彩色隐藏图 - 美化样式 */
.hi-tool {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hi-header {
    text-align: center;
    margin-bottom: 24px;
}
.hi-header h1 {
    font-size: 1.8em;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.hi-desc {
    color: #666;
    font-size: 1em;
    margin: 0;
}

/* 步骤条 */
.hi-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 16px 0;
}
.hi-step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hi-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85em;
    flex-shrink: 0;
}
.hi-step-text {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}
.hi-step-arrow {
    color: #ccc;
    font-size: 0.8em;
}

/* 区块 */
.hi-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hi-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 14px;
}
.hi-section-title i {
    color: #667eea;
}

/* 上传区域 */
.hi-upload-zone {
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fafbfc;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hi-upload-zone:hover {
    border-color: #667eea;
    background: #f5f3ff;
}
.hi-upload-zone.hi-dragover {
    border-color: #667eea;
    background: #ede9fe;
}
.hi-upload-zone-sm {
    padding: 20px 15px;
    min-height: 100px;
}

.hi-upload-placeholder {
    text-align: center;
}
.hi-upload-placeholder i {
    font-size: 2.2em;
    color: #b0b0b0;
    margin-bottom: 8px;
    display: block;
}
.hi-upload-placeholder p {
    margin: 4px 0;
    color: #666;
    font-size: 0.95em;
}
.hi-upload-placeholder span {
    font-size: 0.8em;
    color: #aaa;
}

.hi-preview-thumb {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    object-fit: contain;
}

/* 二维码Tab */
.hi-qr-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.hi-qr-tab {
    flex: 1;
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}
.hi-qr-tab:hover {
    background: #eee;
}
.hi-qr-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.hi-qr-tab-content {
    display: none;
}
.hi-qr-tab-content.active {
    display: block;
}

/* 输入框 */
.hi-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.hi-text-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.2s;
}
.hi-text-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.hi-qr-preview-area {
    text-align: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
}
.hi-qr-hint {
    margin: 6px 0 0;
    font-size: 0.85em;
    color: #28a745;
}

/* 按钮 */
.hi-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}
.hi-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hi-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.hi-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.hi-btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(102,126,234,0.4);
    transform: translateY(-1px);
}
.hi-btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}
.hi-btn-success:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(40,167,69,0.4);
    transform: translateY(-1px);
}
.hi-btn-outline {
    background: #fff;
    color: #667eea;
    border: 1px solid #667eea;
    padding: 10px 18px;
}
.hi-btn-outline:hover:not(:disabled) {
    background: #667eea;
    color: #fff;
}

/* 预览区域 */
.hi-preview-container {
    margin-top: 20px;
}
.hi-preview-box {
    background: #fafbfc;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
.hi-preview-box img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    object-fit: contain;
}

.hi-preview-placeholder {
    text-align: center;
    color: #aaa;
}
.hi-preview-placeholder i {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}
.hi-preview-placeholder p {
    margin: 0;
    font-size: 0.95em;
}

/* 加载动画 */
.hi-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hi-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: hi-spin 0.8s linear infinite;
}
@keyframes hi-spin {
    to { transform: rotate(360deg); }
}
.hi-loading p {
    color: #667eea;
    font-size: 0.9em;
    margin: 0;
}

/* 提示 */
.hi-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85em;
    color: #999;
}
.hi-tip i {
    margin-right: 4px;
}

/* 响应式 */
@media (max-width: 600px) {
    .hi-tool { padding: 12px; }
    .hi-steps { gap: 4px; }
    .hi-step-text { font-size: 0.8em; }
    .hi-input-group { flex-direction: column; }
    .hi-actions { flex-direction: column; }
    .hi-btn { width: 100%; justify-content: center; }
}
