/* ==================== 画符起卦模块样式 ==================== */
.hf-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.hf-canvas {
    display: block;
    width: 100%;
    height: 400px;
    touch-action: none;
    cursor: crosshair;
}

.hf-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 1.2em;
    pointer-events: none;
    transition: opacity 0.3s;
}

.hf-hint.hidden {
    opacity: 0;
}

.hf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 15px auto 0;
    padding: 0 10px;
}

.hf-pen-sizes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hf-pen-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.hf-pen-btn.hf-pen-active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.hf-clear-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    color: #e53935;
    border-color: #ffcdd2;
}

.hf-clear-btn:hover {
    background: #ffebee;
}

@media (max-width: 768px) {
    .hf-canvas {
        height: 320px;
    }
}
